Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AA-227: Define JSON schema for the alt-mempool configuration #238

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

forshtat
Copy link
Contributor

@forshtat forshtat commented Jan 7, 2025

No description provided.

if (isRuleViolated) {
this._violationDetected({
rule: ERC7562Rule.op054,
// TODO: fill in depth, entity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be set with recursionDepth, and maybe rename to callDepth?

})
}

checkStorageInternal (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe let's keep the consistency of "_function" instead?

(opcode: string): void => {
this._violationDetected({
rule: ERC7562Rule.op011,
// TODO: fill in depth, entity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do that "todo"?

this._violationDetected({
rule: ERC7562Rule.op011,
// TODO: fill in depth, entity
depth: -1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here

if (tracerResults.outOfGas) {
this._violationDetected({
rule: ERC7562Rule.op020,
// TODO: fill in depth, entity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here

if (!(isAllowedCreateByOP032 || isAllowedCreateByEREP060 || isAllowedCreateSenderByFactory)) {
this._violationDetected({
rule: ERC7562Rule.op011,
// TODO: fill in depth, entity
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...

illegalZeroCodeAccess.address = addr
this._violationDetected({
address: '',
depth: 0,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants