fix types in gethclient.Client.GetProof (#599)

This commit is contained in:
HAOYUatHZ 2023-12-14 19:04:52 +08:00 committed by GitHub
parent 36ddb8d069
commit a6859fb6bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
} }