From b5ea5bf6b927d964773b73a354d6a2a4d83c8151 Mon Sep 17 00:00:00 2001 From: crypto-facs <84574577+crypto-facs@users.noreply.github.com> Date: Tue, 22 Jun 2021 03:45:10 -0400 Subject: [PATCH] evm: return valid nonce on `eth_getBlockByNumber` (#156) --- ethereum/rpc/types/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/rpc/types/utils.go b/ethereum/rpc/types/utils.go index 51464d30..21855172 100644 --- a/ethereum/rpc/types/utils.go +++ b/ethereum/rpc/types/utils.go @@ -183,7 +183,7 @@ func FormatBlock( "number": hexutil.Uint64(header.Height), "hash": hexutil.Bytes(header.Hash()), "parentHash": hexutil.Bytes(header.LastBlockID.Hash), - "nonce": hexutil.Uint64(0), // PoW specific + "nonce": ethtypes.BlockNonce{}, // PoW specific "sha3Uncles": ethtypes.EmptyUncleHash, // No uncles in Tendermint "logsBloom": bloom, "stateRoot": hexutil.Bytes(header.AppHash),