Skip to content

Commit

Permalink
update ethclient/gethclient/gethclient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop committed Dec 5, 2023
1 parent 3ccc16f commit b81fb08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ethclient/gethclient/gethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type AccountResult struct {
Balance *big.Int `json:"balance"`
KeccakCodeHash common.Hash `json:"keccakCodeHash"`
PoseidonCodeHash common.Hash `json:"poseidonCodeHash"`
CodeSize common.Hash `json:"codeSize"`
Nonce uint64 `json:"nonce"`
StorageHash common.Hash `json:"storageHash"`
StorageProof []StorageResult `json:"storageProof"`
Expand Down Expand Up @@ -94,6 +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 common.Hash `json:"codeSize"`
Nonce hexutil.Uint64 `json:"nonce"`
StorageHash common.Hash `json:"storageHash"`
StorageProof []storageResult `json:"storageProof"`
Expand Down Expand Up @@ -122,6 +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,
StorageHash: res.StorageHash,
StorageProof: storageResults,
}
Expand Down

0 comments on commit b81fb08

Please sign in to comment.