-
Notifications
You must be signed in to change notification settings - Fork 76
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
Added ability to run without signature verification #94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions but LGTM otherwise! 🚀
/// @notice Validation that the ECDSA signature of the transaction is correct. | ||
/// @param _hash The hash of the transaction to be signed. | ||
/// @param _signature The signature of the transaction. | ||
/// @return EIP1271_SUCCESS_RETURN_VALUE if the signaure is correct. It reverts otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these comments reflect the body comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
let system_contracts_options = if opt.dev_use_local_contracts { | ||
system_contracts::Options::Local | ||
} else { | ||
system_contracts::Options::BuiltIn | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be missing this but how does one specify to make use of BuiltInWithoutSecurity
option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently it only works if you include era-test-node as a library:
https://github.com/mm-zk/revm_era/blob/master/src/lib.rs#L223
We might add it as a command line option in the future for the era-test-node binary. (but that would be a separate PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make a GitHub Issue to track adding an option to use BuiltInWithoutSecurity
from the binary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (Just have non-blocking follow-ups)
let system_contracts_options = if opt.dev_use_local_contracts { | ||
system_contracts::Options::Local | ||
} else { | ||
system_contracts::Options::BuiltIn | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make a GitHub Issue to track adding an option to use BuiltInWithoutSecurity
from the binary
What 💻
Why ✋
Evidence 📷
Include screenshots, screen recordings, or
console
output here demonstrating that your changes work as intended