Skip to content

pallet-revive eth-rpc: make SubmittedTransaction::gas() return Option<U256>#12220

Open
Nathy-bajo wants to merge 4 commits into
paritytech:masterfrom
Nathy-bajo:eth-rpc-transaction
Open

pallet-revive eth-rpc: make SubmittedTransaction::gas() return Option<U256>#12220
Nathy-bajo wants to merge 4 commits into
paritytech:masterfrom
Nathy-bajo:eth-rpc-transaction

Conversation

@Nathy-bajo
Copy link
Copy Markdown
Contributor

@Nathy-bajo Nathy-bajo commented May 27, 2026

closes #11889

Change SubmittedTransaction::gas() to return Option<U256> mirroring the underlying GenericTransaction::gas field, and skip the wait_for_receipt gas-limit assertion when no gas limit is set, removing the panic that occurred on legacy/incomplete payloads.

@Nathy-bajo Nathy-bajo requested a review from a team as a code owner May 27, 2026 23:22
@Nathy-bajo
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --audience node_dev --bump major

@Nathy-bajo
Copy link
Copy Markdown
Contributor Author

/cmd label T7-smart_contracts

@paritytech-cmd-bot-polkadot-sdk paritytech-cmd-bot-polkadot-sdk Bot added the T7-smart_contracts This PR/Issue is related to smart contracts. label May 27, 2026
@Nathy-bajo
Copy link
Copy Markdown
Contributor Author

@0xOmarA @marian-radu @athei This is ready for review also

Comment thread prdoc/pr_12220.prdoc
Change `SubmittedTransaction::gas()` to return `Option<U256>` mirroring the underlying `GenericTransaction::gas` field, and skip the `wait_for_receipt` gas-limit assertion when no gas limit is set, removing the panic that occurred on legacy/incomplete payloads.
crates:
- name: pallet-revive-eth-rpc
bump: major
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that this example code module is even public. @pgherveou do you know any reason?

@paritytech-review-bot paritytech-review-bot Bot requested a review from a team May 28, 2026 23:55
@Nathy-bajo Nathy-bajo requested a review from xermicus May 30, 2026 19:02
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.

[pallet-revive] eth-rpc: SubmittedTransaction::gas() panics when transaction has no gas field

2 participants