-
Notifications
You must be signed in to change notification settings - Fork 51
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
[MOON-2092] Implement call state override for eth_call #163
base: moonbeam-polkadot-v0.9.37
Are you sure you want to change the base?
Conversation
B: BlockT, | ||
C: StorageProvider<B, sc_service::TFullBackend<B>>, | ||
{ | ||
type AddressMapping = M; |
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.
The presence of different address schemes introduces another generic parameter M
to most of the service build code. We have the option to mark it as concrete in the EthDeps
config struct to avoid that.
/// Implements a default runtime storage override. | ||
/// It assumes that the balances and nonces are stored in pallet `system.account`, and | ||
/// have `nonce: Index` = `u32` for and `free: Balance` = `u128`. | ||
pub struct DefaultEthereumRuntimeStorageOverride<M>(pub std::marker::PhantomData<M>); |
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.
This default may or may not be super useful as we ourselves are using AccountId20
while frontier is targetting AccountId32
. The basic pallet system override might be trivial to copy paste from the template instead.
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.
Great work, looks good to me, we just need to mimic the geth rpc api
Implements call state override for
eth_call
.