mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
This commit is contained in:
parent
144fbbf35a
commit
9acddd1792
1 changed files with 5 additions and 0 deletions
|
|
@ -97,6 +97,11 @@ func (ec *Client) GetProof(ctx context.Context, account common.Address, keys []s
|
|||
StorageProof []storageResult `json:"storageProof"`
|
||||
}
|
||||
|
||||
// Avoid keys being 'null'.
|
||||
if keys == nil {
|
||||
keys = []string{}
|
||||
}
|
||||
|
||||
var res accountResult
|
||||
err := ec.c.CallContext(ctx, &res, "eth_getProof", account, keys, toBlockNumArg(blockNumber))
|
||||
// Turn hexutils back to normal datatypes
|
||||
|
|
|
|||
Loading…
Reference in a new issue