flow-cli icon indicating copy to clipboard operation
flow-cli copied to clipboard

Emulated EVM contract address differs from stated in startup log

Open sisyphusSmiling opened this issue 1 year ago • 0 comments

Problem

When running emulator using v1.8.0-evm-preview-1 flow emulator --evm-enabled, the EVM address displayed in the startup log differs from the actual deployment address.

Steps to Reproduce

Running flow emulator --evm-enabled, see EVM=0x01cf0e2f2f715450. However, when retrieving that address's details, we see:

❯ flow accounts get 0x01cf0e2f2f715450
...
Address     0x01cf0e2f2f715450
Balance     0.00000000
Keys     0
Contracts Deployed: 0


Contracts (hidden, use --include contracts)

And retrieving the emulator-account address, we see the EVM contract is deployed to 0xf8d6e0586b0a20c7

❯ flow accounts get 0xf8d6e0586b0a20c7
...
Contracts Deployed: 16
Contract: 'FlowStakingCollection'
Contract: 'NodeVersionBeacon'
Contract: 'EVM'

Acceptance Criteria

Consistent EVM contract address in logs and deployment

Context

EVM bridge

sisyphusSmiling avatar Dec 14 '23 15:12 sisyphusSmiling