Skip to content

Should refund if the EVM precompile call failed #2156

@open-junius

Description

@open-junius

Describe the bug

Current, we just refund the over charged fee via refund_external_cost if the transaction is failed.
investigate the function in frontier https://github.com/moonbeam-foundation/frontier/blob/master/precompiles/src/substrate.rs#L106.

To Reproduce

create a failed precompile call to check if the extra fee is refunded

Expected behavior

we should refund it in error case.

Screenshots

No response

Environment

ubuntu

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions