From a96667cfe144141eaf6147546a69aa80a9187ca6 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Thu, 14 Dec 2023 19:04:02 +0800 Subject: [PATCH] fix types in `gethclient.Client.GetProof` --- ethclient/gethclient/gethclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethclient/gethclient/gethclient.go b/ethclient/gethclient/gethclient.go index c69244113873..7b0f4653e1c8 100644 --- a/ethclient/gethclient/gethclient.go +++ b/ethclient/gethclient/gethclient.go @@ -95,7 +95,7 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s Balance *hexutil.Big `json:"balance"` KeccakCodeHash common.Hash `json:"keccakCodeHash"` PoseidonCodeHash common.Hash `json:"poseidonCodeHash"` - CodeSize uint64 `json:"codeSize"` + CodeSize hexutil.Uint64 `json:"codeSize"` Nonce hexutil.Uint64 `json:"nonce"` StorageHash common.Hash `json:"storageHash"` StorageProof []storageResult `json:"storageProof"` @@ -124,7 +124,7 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s Nonce: uint64(res.Nonce), KeccakCodeHash: res.KeccakCodeHash, PoseidonCodeHash: res.PoseidonCodeHash, - CodeSize: res.CodeSize, + CodeSize: uint64(res.CodeSize), StorageHash: res.StorageHash, StorageProof: storageResults, }