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(evm): contract deployment event is not emitted (nibiru one / N1) #2216

Open
onikonychev opened this issue Feb 24, 2025 · 0 comments
Open
Assignees
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5

Comments

@onikonychev
Copy link
Contributor

Issue spotted when HeartMonitor captured ERC20 tx log for a contract which is not tracked. Issue happened in block 19176785:
https://rpc.nibiru.fi/block_results?height=19176785

Tx Hash: 0xc3a57553cebe226092b2d246c46afb81bfea5025416260b49daa2250c57cd571

EventEthereumTx event:

It's a call to a contract 0x760A48Afb8A0439834567f00E30e8305154409CC

{
   "type":"eth.evm.v1.EventEthereumTx",
   "attributes":[
      {
         "key":"amount",
         "value":"\"\"",
         "index":true
      },
      {
         "key":"eth_hash",
         "value":"\"0xc3a57553cebe226092b2d246c46afb81bfea5025416260b49daa2250c57cd571\"",
         "index":true
      },
      {
         "key":"gas_used",
         "value":"\"6578780\"",
         "index":true
      },
      {
         "key":"hash",
         "value":"\"35CA204139DF62191E63BC3999E55431D217EACADCD4172D8586116F3E0542C4\"",
         "index":true
      },
      {
         "key":"index",
         "value":"\"0\"",
         "index":true
      },
      {
         "key":"recipient",
         "value":"\"0x760A48Afb8A0439834567f00E30e8305154409CC\"",
         "index":true
      },
      {
         "key":"vm_error",
         "value":"\"\"",
         "index":true
      }
   ]
}

Contract 0x760A48Afb8A0439834567f00E30e8305154409CC was deployed at block https://rpc.nibiru.fi/block_results?height=19156510 by 0x4f362277C7cb0B96c1Cdf21cDdf07C5F4049EAc6

Traces of contract deployment

Tried finding the block where that missing contract was deployed and found that it's deployed exactly in block 19176785, call returns no code in a block before.

curl -X POST https://evm-rpc.archive.nibiru.fi/ \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "method": "eth_getCode",
  "params": [
    "0xe43Ea445D0Db375FC38A3F7a41bE5DFc2d9357a4",
    "0x1249D51"
  ],
  "id": 1
}'

This means, the contract was deployed by another contract call.

Nibiru One

One of the tx logs contains data mentioning "nibiru One" and "N1".

@onikonychev onikonychev self-assigned this Feb 24, 2025
@github-project-automation github-project-automation bot moved this to ⚡ Building 🧱 in ⚛️ Nibiru (Hougyoku) Feb 24, 2025
@github-actions github-actions bot added the S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5 label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

1 participant