mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix types in gethclient.Client.GetProof (#599)
This commit is contained in:
parent
36ddb8d069
commit
a6859fb6bd
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s
|
||||||
Balance *hexutil.Big `json:"balance"`
|
Balance *hexutil.Big `json:"balance"`
|
||||||
KeccakCodeHash common.Hash `json:"keccakCodeHash"`
|
KeccakCodeHash common.Hash `json:"keccakCodeHash"`
|
||||||
PoseidonCodeHash common.Hash `json:"poseidonCodeHash"`
|
PoseidonCodeHash common.Hash `json:"poseidonCodeHash"`
|
||||||
CodeSize uint64 `json:"codeSize"`
|
CodeSize hexutil.Uint64 `json:"codeSize"`
|
||||||
Nonce hexutil.Uint64 `json:"nonce"`
|
Nonce hexutil.Uint64 `json:"nonce"`
|
||||||
StorageHash common.Hash `json:"storageHash"`
|
StorageHash common.Hash `json:"storageHash"`
|
||||||
StorageProof []storageResult `json:"storageProof"`
|
StorageProof []storageResult `json:"storageProof"`
|
||||||
|
|
@ -124,7 +124,7 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s
|
||||||
Nonce: uint64(res.Nonce),
|
Nonce: uint64(res.Nonce),
|
||||||
KeccakCodeHash: res.KeccakCodeHash,
|
KeccakCodeHash: res.KeccakCodeHash,
|
||||||
PoseidonCodeHash: res.PoseidonCodeHash,
|
PoseidonCodeHash: res.PoseidonCodeHash,
|
||||||
CodeSize: res.CodeSize,
|
CodeSize: uint64(res.CodeSize),
|
||||||
StorageHash: res.StorageHash,
|
StorageHash: res.StorageHash,
|
||||||
StorageProof: storageResults,
|
StorageProof: storageResults,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue