Skip to content

Commit

Permalink
fix types in gethclient.Client.GetProof
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop committed Dec 14, 2023
1 parent 36ddb8d commit a96667c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethclient/gethclient/gethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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,
}
Expand Down

0 comments on commit a96667c

Please sign in to comment.