From 91ed0d20ff0a826517ca9816a787f1e7bef899bf Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Sat, 4 Jun 2022 15:03:30 +0300 Subject: [PATCH] [#1417] go.mod: Update neo-go to v0.99.0 Signed-off-by: Evgenii Stratonikov --- CHANGELOG.md | 3 +++ go.mod | 7 ++++--- go.sum | Bin 98309 -> 98650 bytes pkg/morph/client/client.go | 6 +++--- pkg/morph/client/client_test.go | 7 +++++++ pkg/morph/client/nns.go | 3 ++- 6 files changed, 19 insertions(+), 7 deletions(-) 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 b2ddd869d4d4c7272f177324fc95b83e93d7744f..2beee5848d7c462468742dce251a69cbba048abe 100644 GIT binary patch delta 480 zcmZwDy>6RO0ES^%kuqe-W~EYFrQIwmaNvO9M5-cUew^6g#1I47Ffm}vF-~lLOfp23 zqOPq_&L_uD%(U}*>t1d!QtA?sXt z05HRbx6(d*-JlTx*1Fivd@0uBp~72nuZ38;Sn!=p5NGv;mec2jQOB^S8Cdhn&*iIq z^wg1lOyKxpogWT3DhqQF^;F%G0}FPWW^{k5U6r z6b%q)?7_j%Z8TWUV_kNw4NNCNOwiKD#axp)Ni@dkso?T?ILj4v;>aE)URi#UTKqrl zS@r)~`EY--dcJ(z{(B)hvtfPIq~Ri$!I`Hx_LVY?PU{@%`SpOjL~~>7@OVLOn_zB$2!*(-fa2t fbnFwO3Au1^M5J&xg#;j|W%s(m|LEUTzHR&g%F~_| delta 290 zcmccB#Mautwn0gAbE#%!#^lJ!Qk!cgIWikr=ou?y7+Sdm8v2$;`4qal`nZRd1QlEO z2W0z{B<4kBySci#1%{iJ1#1T+8+w+xM@~LCS$uN+6fPD^px();Q-deJoF+NBVOkRq zvpAZV7#f@FrkEyLCZ?HMm>DFdfs7CIH!cX(&kByLj4*cfaEh>S3h*~D%n!;A%W!v! z2q+3n40O%N(>6&fvw#}U1~rvM2-C#L)20PXK08Bj^Oxx-`6utO;@+&hV&@fokVP35 zg)aFeiLL>qUXCF}zPaHBCVtN4>E>ldMu{FCMi%Ae1&O7h8Qzxu`O|G`7-gp)sbLJ* KzPgriJu?8QCT8jY 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 {