forked from TrueCloudLab/neoneo-go
rpcclient: always provide start
parameter for findstorage
RPC
Close #3137. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
ef2bc7ca04
commit
1841d818ec
1 changed files with 6 additions and 0 deletions
|
@ -578,6 +578,9 @@ func (c *Client) FindStorageByHash(contractHash util.Uint160, prefix []byte, sta
|
|||
var params = []any{contractHash.StringLE(), prefix}
|
||||
if start != nil {
|
||||
params = append(params, *start)
|
||||
} else {
|
||||
// C# node expects `start` parameter in any case.
|
||||
params = append(params, 0)
|
||||
}
|
||||
return c.findStorage(params)
|
||||
}
|
||||
|
@ -589,6 +592,9 @@ func (c *Client) FindStorageByID(contractID int32, prefix []byte, start *int) (r
|
|||
var params = []any{contractID, prefix}
|
||||
if start != nil {
|
||||
params = append(params, *start)
|
||||
} else {
|
||||
// C# node expects `start` parameter in any case.
|
||||
params = append(params, 0)
|
||||
}
|
||||
return c.findStorage(params)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue