mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
34073a1925
commit
1bf181eda6
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,6 @@ type StorageResult struct {
|
|||
// GetProof returns the account and storage values of the specified account including the Merkle-proof.
|
||||
// The block number can be nil, in which case the value is taken from the latest known block.
|
||||
func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []string, blockNumber *big.Int) (*AccountResult, error) {
|
||||
|
||||
type storageResult struct {
|
||||
Key string `json:"key"`
|
||||
Value *hexutil.Big `json:"value"`
|
||||
|
|
@ -115,6 +114,7 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s
|
|||
Nonce: uint64(res.Nonce),
|
||||
CodeHash: res.CodeHash,
|
||||
StorageHash: res.StorageHash,
|
||||
StorageProof: storageResults,
|
||||
}
|
||||
return &result, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue