-
Notifications
You must be signed in to change notification settings - Fork 1k
pallet_revive: when a dry run simulates contract deployment, return the execution result data. #10032
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
pallet_revive: when a dry run simulates contract deployment, return the execution result data. #10032
Conversation
a7397be
to
9cac16e
Compare
/cmd prdoc --audience runtime_dev --bump patch |
All GitHub workflows were cancelled due to failure one of the required jobs. |
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
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.
Code looks good. Tested against this reproducer: paritytech/contract-issues#177 (comment)
Should we add this to the RPC test suite?
Yes, I'm working on adding a test for this scenario to the evm-test-suite. |
…s-not-return-deployed-bytecode
Fixes paritytech/contract-issues#177
Expose the deployed contract's runtime bytecode in eth_call responses during simulated contract creation.
The test from issue paritytech/contract-issues#177 sends an eth_call request without a destination address, while providing contract bytecode in the data field. This simulates a contract creation transaction. The test expects the RPC response to return the result of executing the init code, which is the deployed contract's runtime bytecode. While this result is not returned in actual deployments, it is expected in dry-run simulations.