The WeightInfo is a unique feature in the current evm pallet, it's used to track the consumed the weight in the evm stack execution. There is no such thing in the Ethereum, so we better keep it in a single object instead of multiple places, this makes the whole logic much clearer. In this PR:
I have merged the weight_limit and proof_size_base_cost into the existingWeightInfo struct and initialise it when the transaction starts to execute and pass it along to the runner.
Rename it to EvmWeightInfo to avoid confiict with the one in the polkadot-sdk.
The
WeightInfo
is a unique feature in the current evm pallet, it's used to track the consumed the weight in the evm stack execution. There is no such thing in the Ethereum, so we better keep it in a single object instead of multiple places, this makes the whole logic much clearer. In this PR:EvmWeightInfo
to avoid confiict with the one in the polkadot-sdk.