mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +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.
|
// 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.
|
// 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) {
|
func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []string, blockNumber *big.Int) (*AccountResult, error) {
|
||||||
|
|
||||||
type storageResult struct {
|
type storageResult struct {
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
Value *hexutil.Big `json:"value"`
|
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),
|
Nonce: uint64(res.Nonce),
|
||||||
CodeHash: res.CodeHash,
|
CodeHash: res.CodeHash,
|
||||||
StorageHash: res.StorageHash,
|
StorageHash: res.StorageHash,
|
||||||
|
StorageProof: storageResults,
|
||||||
}
|
}
|
||||||
return &result, err
|
return &result, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue