aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

Indexer does not pick up EIP-1559 transactions #233

Closed birchmd closed 2 years ago

birchmd commented 2 years ago

I sent an EIP-1559 transaction to the relayer. It crated the NEAR transaction https://explorer.mainnet.near.org/transactions/5LViBxmU2ZiN3W7QmWtkoX9x6WqUYXeTSWrn57EPX754 You can see it was successful, but when I query for the transaction the relayer cannot find it

$ http post https://mainnet.aurora.dev/ jsonrpc=2.0 id=dontcare method=eth_getTransactionReceipt params:='["0x814fb5fccfa6dc8e6d563361709e3377f215e006e6b82220d32329ddd5b4fa6b"]'
{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": null
}

Also doesn't show up on the explorer: https://aurorascan.dev/address/0x1a642f0e3c3af545e7acbd38b07251b3990914f1 Only 22 transactions are listed, but the current nonce of this address is 28 (0x1c in hex):

http post https://mainnet.aurora.dev/ jsonrpc=2.0 id=dontcare method=eth_getTransactionCount params:='["0x1a642f0E3c3aF545E7AcBD38b07251B3990914F1"]'
{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": "0x1c"
}

To reproduce yourself do the following steps:

git clone --recursive https://github.com/birchmd/aurora-cli-rs.git
cd aurora-cli-rs/
git checkout eip-1559-txs
cd aurora-engine/
make mainnet
cd ..
echo "<YOUR-API-KEY>" > .api_key
cargo run

Note: an API key is required to allow submitting transactions with 0 gas price. The cargo run command will create a new EIP-1559 transaction from address 0x1a642f0e3c3af545e7acbd38b07251b3990914f1 as in the above example. It will print out the NEAR transaction hash and the Aurora transaction hash so that you can confirm the transaction happened on chain, but is not indexed by Aurora.