From d5bfa636bbdf41481fc6ec584961579eb22c8ec5 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Mon, 4 Dec 2023 17:31:17 +0800 Subject: [PATCH] update internal/ethapi/api.go --- internal/ethapi/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 427707506666..f967e7b230c2 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -646,6 +646,7 @@ type AccountResult struct { Balance *hexutil.Big `json:"balance"` KeccakCodeHash common.Hash `json:"keccakCodeHash"` PoseidonCodeHash common.Hash `json:"poseidonCodeHash"` + CodeSize hexutil.Uint64 `json:"codeSize"` Nonce hexutil.Uint64 `json:"nonce"` StorageHash common.Hash `json:"storageHash"` StorageProof []StorageResult `json:"storageProof"` @@ -742,6 +743,7 @@ func (s *BlockChainAPI) GetProof(ctx context.Context, address common.Address, st Balance: (*hexutil.Big)(statedb.GetBalance(address)), KeccakCodeHash: keccakCodeHash, PoseidonCodeHash: poseidonCodeHash, + CodeSize: hexutil.Uint64(statedb.GetCodeSize(address)), Nonce: hexutil.Uint64(statedb.GetNonce(address)), StorageHash: storageRoot, StorageProof: storageProof,