-
Notifications
You must be signed in to change notification settings - Fork 956
[pallet-revive] Make Runtime call dispatchable as eth transaction #8883
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
Conversation
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
storage_deposit_limit, | ||
data, | ||
if dest == RUNTIME_PALLETS_ADDR { | ||
let call = CallOf::<Self::Config>::decode(&mut &data[..]).map_err(|_| { |
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.
Needs a decode_with_max_depth or something. You need to check where it is decoded elsewhere.
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.
probably fine to apply the same limit as in https://github.com/paritytech/polkadot-sdk/blob/pg/fix-extension-weight/substrate/frame/executive/src/lib.rs?plain=1#L801-L798
made the changes here:
eadfed3
- Use the extension_weight of the eth transact, not the transformed one in both the dry-run and Checkable trait
All GitHub workflows were cancelled due to failure one of the required jobs. |
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.
using the encoded runtime call as input, the call will be executed by this given origin.
Meaning: Given the origin indicated by the Ethereum signature (0xEE account_id).
Make RuntimeCall dispatchable as eth transaction.
By sending a transaction to
0x6d6f646c70792f70616464720000000000000000
, using the encoded runtime call as input, the call will be executed by the origin indicated by the Ethereum signature (0xEE account_id).see paritytech/foundry-polkadot#130
e.g sending a remark_with_event
also merged in #8901 and #8920