0xPolygonHermez / cdk-erigon

Ethereum implementation on the efficiency frontier
GNU Lesser General Public License v3.0
35 stars 39 forks source link

Unable to retrieve nonce at current height #1460

Closed praetoriansentry closed 3 days ago

praetoriansentry commented 1 week ago

It seems like implementations for fetching the nonce at the current block height don't work. latest seems to be fine.

Making this call

cast nonce --block $(cast block-number --rpc-url https://rpc.internal.zkevm-rpc.com) --rpc-url https://rpc.internal.zkevm-rpc.com 0xCE27d8BCee45dB3E457EcF8629264Ca7893AAaAc

will fail with an error like:

server returned an error response: error code -32000: RPC error response: block with number 7527390 not found

But such a call will work fine against mainnet:

cast nonce --block $(cast block-number --rpc-url https://zkevm-rpc.com) --rpc-url https://zkevm-rpc.com 0xCE27d8BCee45dB3E457EcF8629264Ca7893AAaAc
revitteth commented 1 week ago

Fixed by: https://github.com/0xPolygonHermez/cdk-erigon/pull/1473

Sharonbc01 commented 1 week ago

Hey @revitteth we still need to validate this issue when merged into beta 10 so any objection to me leaving this open?

cc: @praetoriansentry

revitteth commented 1 week ago

Yeah good plan!

praetoriansentry commented 3 days ago

This looks good to me now.

Sharonbc01 commented 3 days ago

Thanks John will close