You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support EVM-like contracts and transactions in block explorer.
📝 Description
The EVM emulator adds the ability to deploy and execute EVM bytecode on top of EraVM. For this reason, we would like to support the EVM contracts in the block explorer.
Deployment of EVM contracts differs from deployment of EraVM contracts. For deployment of EVM contracts, a transaction without the to field is used. The data field of this transaction is used as initCode in constructor of the contract being created.
🌟 Feature Request
Support EVM-like contracts and transactions in block explorer.
📝 Description
The EVM emulator adds the ability to deploy and execute EVM bytecode on top of EraVM. For this reason, we would like to support the EVM contracts in the block explorer.
Deployment of EVM contracts differs from deployment of EraVM contracts. For deployment of EVM contracts, a transaction without the
to
field is used. Thedata
field of this transaction is used as initCode in constructor of the contract being created.Basic compatibility (allowed transactions without field
to
in DB schema, small changes in UI) is implemented there:https://github.com/0xVolosnikov/block-explorer/tree/evm-emulator-support
This branch is a PoC and requires some work.
At the first step we would like to have the following result:
📋 Additional Context
How to determine if a smart contract is a EVM contract or not
In AccountCodeStorage system contract isAccountEVM function can be used to check if the contract is EVM smart-contract.
How to launch chain with EVM emulator locally.
Install deps and prepare:
Init chain:
Run server:
The text was updated successfully, but these errors were encountered: