[#1417] go.mod: Update neo-go to v0.99.0

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-06-04 15:03:30 +03:00 committed by fyrchik
parent fa009db140
commit 91ed0d20ff
6 changed files with 19 additions and 7 deletions

View file

@ -6,6 +6,9 @@ Changelog for NeoFS Node
### Fixed
- Confirmation of eACL tables by alphabet nodes when ACL extensibility is disabled (#1485)
### Updated
- Neo-go 0.98.3 => 0.99.0 (#1480)
### Changed
- Replace pointers with raw structures in results for local storage (#1460)

7
go.mod
View file

@ -15,8 +15,8 @@ require (
github.com/multiformats/go-multiaddr v0.4.0
github.com/nats-io/nats.go v1.13.1-0.20220308171302-2f2f6968e98d
github.com/nspcc-dev/hrw v1.0.9
github.com/nspcc-dev/neo-go v0.98.3
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220321144137-d5a9af5860af // indirect
github.com/nspcc-dev/neo-go v0.99.0
github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20220601120906-3bec6657f5c5 // indirect
github.com/nspcc-dev/neofs-api-go/v2 v2.12.2
github.com/nspcc-dev/neofs-contract v0.15.1
github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.4.0.20220607185339-031eac2f48f6
@ -42,6 +42,7 @@ require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd v0.22.0-beta // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
@ -94,5 +95,5 @@ require (
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
gopkg.in/ini.v1 v1.62.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

BIN
go.sum

Binary file not shown.

View file

@ -451,13 +451,13 @@ func toStackParameter(value interface{}) (sc.Parameter, error) {
result.Type = sc.ByteArrayType
case int:
result.Type = sc.IntegerType
result.Value = int64(v)
result.Value = big.NewInt(int64(v))
case int64:
result.Type = sc.IntegerType
result.Value = v
result.Value = big.NewInt(v)
case uint64:
result.Type = sc.IntegerType
result.Value = int64(v)
result.Value = new(big.Int).SetUint64(v)
case [][]byte:
arr := make([]sc.Parameter, 0, len(v))
for i := range v {

View file

@ -1,6 +1,7 @@
package client
import (
"math/big"
"testing"
sc "github.com/nspcc-dev/neo-go/pkg/smartcontract"
@ -20,6 +21,12 @@ func TestToStackParameter(t *testing.T) {
{
value: int64(100),
expType: sc.IntegerType,
expVal: big.NewInt(100),
},
{
value: uint64(100),
expType: sc.IntegerType,
expVal: big.NewInt(100),
},
{
value: "hello world",

View file

@ -3,6 +3,7 @@ package client
import (
"errors"
"fmt"
"math/big"
"strconv"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
@ -114,7 +115,7 @@ func nnsResolveItem(c *client.WSClient, nnsHash util.Uint160, domain string) (st
},
{
Type: smartcontract.IntegerType,
Value: int64(nns.TXT),
Value: big.NewInt(int64(nns.TXT)),
},
}, nil)
if err != nil {