[pallet-revive] fix tracing gas used (#7430)
- Charge the nested gas meter for loading the code of the child contract, so that we can properly associate the gas cost to the child call frame. - Move the enter_child_span and exit_child_span around the do_transaction closure to properly capture all failures - Add missing trace capture for call transfer --------- Co-authored-by:Alexander Theißen <alex.theissen@me.com> Co-authored-by: command-bot <> Co-authored-by:
cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by:
Bastian Köcher <git@kchr.de>
parent
2970ab15
Showing
- prdoc/pr_7430.prdoc 28 additions, 0 deletionsprdoc/pr_7430.prdoc
- substrate/frame/revive/fixtures/contracts/caller_contract.rs 15 additions, 10 deletionssubstrate/frame/revive/fixtures/contracts/caller_contract.rs
- substrate/frame/revive/fixtures/contracts/tracing.rs 13 additions, 1 deletionsubstrate/frame/revive/fixtures/contracts/tracing.rs
- substrate/frame/revive/src/exec.rs 94 additions, 66 deletionssubstrate/frame/revive/src/exec.rs
- substrate/frame/revive/src/lib.rs 1 addition, 1 deletionsubstrate/frame/revive/src/lib.rs
- substrate/frame/revive/src/tests.rs 15 additions, 4 deletionssubstrate/frame/revive/src/tests.rs
- substrate/frame/revive/src/wasm/mod.rs 5 additions, 0 deletionssubstrate/frame/revive/src/wasm/mod.rs
Please register or sign in to comment