You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Contracts: return proof_size with ContractResult from dry-runs #12410
Currently, in order to choose a value for gas_limit a UI would first dry-run the extrinsic via state_call and use the resulting ContractResult::gas_required as a parameter to the actual extrinsic.
Now that weights are two dimensional and also include proof_size, we should add that to the ContractResult in order for UIs to correctly populate that value, without having to manually supply a value.
As an aside, actual runtimes could change since other transactions could impact Merkle proof CPU time, but not sure this impacts weight. It won't change much usually though..
Activity
burdges commentedon Oct 3, 2022
As an aside, actual runtimes could change since other transactions could impact Merkle proof CPU time, but not sure this impacts weight. It won't change much usually though..
athei commentedon Oct 5, 2022
Yes state can always change in-between and make the gas estimation stale. In practice it works well.