Skip to content

Conversation

marian-radu
Copy link
Contributor

@marian-radu marian-radu commented Oct 15, 2025

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.

@marian-radu marian-radu changed the title pallet_revive: When a dry-run simulates contract deployment, return t… pallet_revive: When a dry run simulates contract deployment, return the execution result data. Oct 15, 2025
@marian-radu marian-radu changed the title pallet_revive: When a dry run simulates contract deployment, return the execution result data. pallet_revive: when a dry run simulates contract deployment, return the execution result data. Oct 15, 2025
@marian-radu marian-radu requested a review from pgherveou October 15, 2025 15:06
@marian-radu marian-radu added the T7-smart_contracts This PR/Issue is related to smart contracts. label Oct 15, 2025
@pgherveou pgherveou force-pushed the 177-dry-running-deployment-transaction-does-not-return-deployed-bytecode branch from a7397be to 9cac16e Compare October 16, 2025 13:40
@marian-radu marian-radu requested a review from athei October 16, 2025 14:21
@marian-radu
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

@marian-radu marian-radu marked this pull request as ready for review October 18, 2025 10:49
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/18614672083
Failed job name: test-linux-stable-no-try-runtime

@marian-radu
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T7-smart_contracts This PR/Issue is related to smart contracts.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dry running deployment transaction does not return deployed bytecode

2 participants