forked from TrueCloudLab/frostfs-node
[#427] Update neo-go to pre-released v0.94.0 version
Should be compatible with NEO3 testnet. Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
364945a955
commit
ec07792c4e
3 changed files with 9 additions and 2 deletions
2
go.mod
2
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-multiaddr-net v0.1.2 // v0.1.1 => v0.1.2
|
||||||
github.com/multiformats/go-multihash v0.0.13 // indirect
|
github.com/multiformats/go-multihash v0.0.13 // indirect
|
||||||
github.com/nspcc-dev/hrw v1.0.9
|
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-api-go v1.24.1-0.20210312074010-64505180b400
|
||||||
github.com/nspcc-dev/neofs-crypto v0.3.0
|
github.com/nspcc-dev/neofs-crypto v0.3.0
|
||||||
github.com/nspcc-dev/tzhash v1.4.0
|
github.com/nspcc-dev/tzhash v1.4.0
|
||||||
|
|
BIN
go.sum
BIN
go.sum
Binary file not shown.
|
@ -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)
|
resp, err := c.client.InvokeFunction(contract, method, params, cosigner)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
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
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue