diff --git a/CHANGELOG.md b/CHANGELOG.md index dc4a831971..a0954b493f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/go.mod b/go.mod index 49ab8c4ba3..fb741549c8 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index b2ddd869d4..2beee5848d 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 ad3dae21cc..ef81c01751 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -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 { diff --git a/pkg/morph/client/client_test.go b/pkg/morph/client/client_test.go index f977d935f6..5239ffa120 100644 --- a/pkg/morph/client/client_test.go +++ b/pkg/morph/client/client_test.go @@ -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", diff --git a/pkg/morph/client/nns.go b/pkg/morph/client/nns.go index 6150cbb786..eff76c2bfa 100644 --- a/pkg/morph/client/nns.go +++ b/pkg/morph/client/nns.go @@ -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 {