diff --git a/go.mod b/go.mod index e434dda0..a54d4881 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/multiformats/go-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2 github.com/multiformats/go-multihash v0.0.13 // indirect github.com/nspcc-dev/hrw v1.0.9 - github.com/nspcc-dev/neo-go v0.94.0-pre.0.20210301112733-3227de8050f8 + github.com/nspcc-dev/neo-go v0.94.0-pre.0.20210312122023-f7d74190f53d github.com/nspcc-dev/neofs-api-go v1.24.1-0.20210312074010-64505180b400 github.com/nspcc-dev/neofs-crypto v0.3.0 github.com/nspcc-dev/tzhash v1.4.0 diff --git a/go.sum b/go.sum index 66151a54..1caea59d 100644 Binary files a/go.sum and b/go.sum differ diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index c2329e9e..61407c2c 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -69,6 +69,13 @@ func (c *Client) Invoke(contract util.Uint160, fee fixedn.Fixed8, method string, }, } + cosignerAcc := []client.SignerAccount{ + { + Signer: cosigner[0], + Account: c.acc, + }, + } + resp, err := c.client.InvokeFunction(contract, method, params, cosigner) if err != nil { return err @@ -82,7 +89,7 @@ func (c *Client) Invoke(contract util.Uint160, fee fixedn.Fixed8, method string, sysFee := resp.GasConsumed + int64(fee) // consumed gas + extra fee - txHash, err := c.client.SignAndPushInvocationTx(script, c.acc, sysFee, 0, cosigner) + txHash, err := c.client.SignAndPushInvocationTx(script, c.acc, sysFee, 0, cosignerAcc) if err != nil { return err }