Skip to content
Snippets Groups Projects
Unverified Commit 917052e5 authored by PG Herveou's avatar PG Herveou Committed by GitHub
Browse files

[pallet-revive] tx fee fixes (#7463)


Apply some fixes to properly estimate ethereum tx fees:

- Set the `extension_weight` on the dispatch_info to properly calculate
the fee with pallet_transaction_payment
- Expose the gas_price through Runtime API, just in case we decide to
tweak the value in future updates, it should be read from the chain
rather than be a shared constant exposed by the crate
- add a `evm_gas_to_fee` utility function to properly convert gas to
substrate fee
- Fix some minor gas encoding for edge cases

---------

Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
parent 2f44779a
No related merge requests found
Pipeline #514649 waiting for manual action with stages
in 31 minutes
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment