Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: deploy registry fails on subnet-evm #362

Open
lumos42 opened this issue Apr 14, 2024 · 4 comments
Open

[Bug]: deploy registry fails on subnet-evm #362

lumos42 opened this issue Apr 14, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@lumos42
Copy link

lumos42 commented Apr 14, 2024

Describe the bug
TeleporterRegistry deployment on subnet-evm fails

To Reproduce

1. Spin up a subnet-evm local network

2. ./scripts/deploy_teleporter.sh --version v1.0.0 --rpc-url "http://127.0.0.1:9650/ext/bc/<blocjchain_id>/rpc" --private-key <private_key>
# works

3. ./scripts/deploy_registry.sh --version v1.0.0 --rpc-url "http://127.0.0.1:9650/ext/bc/<blocjchain_id>/rpc" --private-key <private_key>
# fails with error = "server returned an error response: error code -32000: execution reverted"

Expected behavior
The script should succeed

Logs from the script execution

Error:
server returned an error response: error code -32000: execution reverted

Logs from subnet-evm

t=2024-04-14T16:58:42.652095+0530 lvl=info msg="Caller gas above allowance, capping"    requested=500000000 cap=50000000 type=system caller=api.go:1274
t=2024-04-14T16:58:42.653456+0530 lvl=eror msg="Served eth_estimateGas"                 reqid=3 execTime=1.522584ms  procTime=1.52325ms   totalTime=1.523333ms  err="execution reverted" type=system caller=handler.go:526

Operating System
MacOS 14.0 (23A344) with Apple silicon

@lumos42 lumos42 added the bug Something isn't working label Apr 14, 2024
@geoff-vball
Copy link
Contributor

Hey @shubhamgoyal42, could you help us out with a little more info?

  • subnet-evm version
  • teleporter version
  • Genesis file for your network.

@lumos42
Copy link
Author

lumos42 commented Apr 15, 2024

Hi @geoff-vball,

@geoff-vball geoff-vball self-assigned this Apr 17, 2024
@geoff-vball
Copy link
Contributor

@shubhamgoyal42 I ran a network with the same genesis file, but added
"warpConfig": { "blockTimestamp": 0 }
and I was able to deploy the contract as expected.

Can you please confirm that the Warp precompile is correctly enabled on your Subnet? You can check this by calling getActivePrecompilesAt via RPC.

@geoff-vball geoff-vball removed their assignment Apr 22, 2024
@michaelkaplan13
Copy link
Collaborator

Hey @lumos42 are you still hitting this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

3 participants