rpc: fix parameters construction error for findstates client wrapper

This commit is contained in:
Anna Shaleva 2022-01-17 12:23:31 +03:00
parent 4c469e6f49
commit edcb6e2eee

View file

@ -459,7 +459,7 @@ func (c *Client) GetState(stateroot util.Uint256, historicalContractHash util.Ui
func (c *Client) FindStates(stateroot util.Uint256, historicalContractHash util.Uint160, historicalPrefix []byte, func (c *Client) FindStates(stateroot util.Uint256, historicalContractHash util.Uint160, historicalPrefix []byte,
start []byte, maxCount *int) (result.FindStates, error) { start []byte, maxCount *int) (result.FindStates, error) {
var ( var (
params = request.NewRawParams(stateroot.StringLE(), historicalContractHash.StringLE(), historicalPrefix, historicalPrefix, start) params = request.NewRawParams(stateroot.StringLE(), historicalContractHash.StringLE(), historicalPrefix, start)
resp result.FindStates resp result.FindStates
) )
if maxCount != nil { if maxCount != nil {