Skip to content

Use evm precompiles to replace ibc hooks/evm hooks #483

@yihuang

Description

@yihuang

https://github.com/loredanacirstea/ethermint/blob/precompiles-ibc7/x/evm/vm/precompiles.go#L39

Advantages

  • Directly called by contract, can return execution result to caller, more convenient.

Pitfalls

  • when precompiled contracts executed, the evm state modifications are not persisted in native storage yet, so they are not visible to the native code, need to be careful when handling user balances.
  • contract exception revert don't work with native storage changes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions