-
Notifications
You must be signed in to change notification settings - Fork 6
Add support for etch cheatcode #345
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
base: alexggh/review_prank
Are you sure you want to change the base?
Conversation
Signed-off-by: Alexandru Gheorghe <[email protected]>
123974f to
b6a78d1
Compare
|
|
||
| execute_with_externalities(|externalities| { | ||
| externalities.execute_with(|| { | ||
| let contract_blob = Pallet::<Runtime>::try_upload_pvm_code( |
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 stupid question here: is the functionality required for doing etch with evm contracts is exposed too on pallet-revive side if we need it later?
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.
Not stupid at all it was on my list and after #345.
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.
try_upload_pvm_code charge gas for the execution and deposit from the caller account, is it OK in context of the test or it should be for free? I am not sure how is it done in Foundry standard REVM - do they charge any gas?
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.
@filip-parity as you are looking into gas could you please take a look how we should handle this? Probably upload call should be for free, REVM in foundry charges for opcodes only as I remember
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Signed-off-by: Alexandru Gheorghe <[email protected]>
Depends of: paritytech/polkadot-sdk#9984
Developed on top of: #334.