Skip to content

Conversation

@alexggh
Copy link

@alexggh alexggh commented Oct 9, 2025

Depends of: paritytech/polkadot-sdk#9984

Developed on top of: #334.

Signed-off-by: Alexandru Gheorghe <[email protected]>

execute_with_externalities(|externalities| {
externalities.execute_with(|| {
let contract_blob = Pallet::<Runtime>::try_upload_pvm_code(
Copy link

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?

Copy link
Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator

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]>
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.

4 participants