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

[pallet-revive] fee estimation fixes (#7281)

- Fix the EVM fee cost estimation.
The estimation shown in EVM wallet was using Native instead of EVM
decimals
- Remove the precise code length estimation in dry run call.
Over-estimating is fine, since extra gas is refunded anyway.
- Ensure that the estimated fee calculated from gas_price x gas use the
encoded weight & deposit limit instead of the exact one calculated by
the dry-run. Else we can end up with a fee that is lower than the actual
fee paid by the user

---------

Co-authored-by: command-bot <>
parent 89b02284
No related merge requests found
Pipeline #512883 waiting for manual action with stages
in 26 minutes and 9 seconds
Showing
with 249 additions and 190 deletions
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