rpc: refactor CreateTxFromScript signature

Make cosigners non-variadic.
This commit is contained in:
Anna Shaleva 2021-03-02 13:58:53 +03:00
parent 4a9ca253d3
commit b1b9a8cf66
5 changed files with 11 additions and 11 deletions

View file

@ -526,7 +526,7 @@ func (c *Client) SignAndPushInvocationTx(script []byte, acc *wallet.Account, sys
var txHash util.Uint256
var err error
tx, err := c.CreateTxFromScript(script, acc, sysfee, int64(netfee), cosigners...)
tx, err := c.CreateTxFromScript(script, acc, sysfee, int64(netfee), cosigners)
if err != nil {
return txHash, fmt.Errorf("failed to create tx: %w", err)
}