From 3a95686aabb4cdd22e629161802cffaa59227b92 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 22 Jul 2022 16:39:02 +0300 Subject: [PATCH] [#300] go.mod: Update neofs-contract Signed-off-by: Evgenii Stratonikov --- go.mod | 4 ++-- go.sum | Bin 43705 -> 43076 bytes ns/nns.go | 4 ++-- ns/nns_test.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index a373179..b630f8c 100644 --- a/go.mod +++ b/go.mod @@ -8,9 +8,9 @@ require ( github.com/hashicorp/golang-lru v0.5.4 github.com/mr-tron/base58 v1.2.0 github.com/nspcc-dev/hrw v1.0.9 - github.com/nspcc-dev/neo-go v0.98.2 + github.com/nspcc-dev/neo-go v0.99.1-pre.0.20220714084516-54849ef3e58e github.com/nspcc-dev/neofs-api-go/v2 v2.13.0 - github.com/nspcc-dev/neofs-contract v0.15.1 + github.com/nspcc-dev/neofs-contract v0.15.3 github.com/nspcc-dev/tzhash v1.6.1 github.com/stretchr/testify v1.7.0 go.uber.org/atomic v1.9.0 diff --git a/go.sum b/go.sum index e0dbdf5c3150db5f84aa9997959577aae2b58643..314d8c36065656541abb4ac67fd9302dd5ac8fbb 100644 GIT binary patch delta 759 zcma*i&1=(e9LI6GjR_7n8BFG6Y-h@vg|wlKA2XX8}#5k~CleryG<`v-&b4v>i6|y6v9rS3;3JMkcdfUp8D$o~cT)=2*0f zDW$0acs3r04^RIKzBUt^(u%|OskWupr)JPi4+WvrEcC>R-ea@cSn=sjNCx>~A-C}N z<0I+5#1Iq#Xh1MYU=S<-9DAVwa#>plER)nk+8vAq#OZoWH<+X>8!sUdP%CO6XJ&y~ zOCuAl_D|cnQGzd=$8@DAi4;mCdmTEh?tRf;2a!MPF$SB)ctyi=@5yYwiyG zkUdy~d!=^?xKnwXfSa|<8vN9_Ou(zAmw>O@R|)v*)XBm3FJG+2ujg!hcYY5ima#^3 y;$oQ@Ka-k+Vs~uT`Om-C74{SW delta 1107 zcmZvbyRX{>6voBvrKli^I#lZ8UR{PVAdC9_NGF`wu^qqSN9@E)*`&FD=TZCB9r#AOz5C*w6CG@#4Xo`;XywN{Wh_)K z09xRX*^G#uCwW9qQ7N7j?8LyDXBUs!tIOi@@i8kFq@7jBSAoojS(tZGp@LQm-@rE& zsD~M?uQ#?sq{435PM&;mvyr+F+Jye=451z)N8VLTO^3RxFj@7i@fIe*c>r%1igF+~4R@P>|Fd9Nskmci^SU4FGOo*88R!Rd0Oh!RkPvjl zAw6qHs*4kg&1`?(k*=`Li8JhB+;0J{fD5sOJ@1-X+{(CGH5^2;@pK!EHE zJx3}XvRd(^RS~rT*0ZvMf?YO+tz9VCaKw&#Z1YsTXg?Z?=O;H_2_=G*)_bB>Ciw-CQDl2tNq^o`x=g_JtiTmA(6>RoJASnnuS`yOV6@LJ_nj~6c_$9K&vfwfbX?m zPWHlS*HY&O^Vw46T~^5J1!7YgN{itlJ#+yH)I2ds7a(V~H`m(N-@LkU{hCz9B!$Zk s%K>fXa%4l8(%bpu7C~H|N2uK{b<0s8cGRT#_4&Q#v*)8`_3iKf0*{exmH+?% diff --git a/ns/nns.go b/ns/nns.go index b43efb0..2a2ee09 100644 --- a/ns/nns.go +++ b/ns/nns.go @@ -11,8 +11,8 @@ import ( "github.com/nspcc-dev/neo-go/pkg/rpc/response/result" "github.com/nspcc-dev/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" "github.com/nspcc-dev/neofs-contract/nns" cid "github.com/nspcc-dev/neofs-sdk-go/container/id" ) @@ -129,7 +129,7 @@ func (n *NNS) ResolveContainerName(name string) (cid.ID, error) { return cid.ID{}, fmt.Errorf("invoke NNS contract: %w", err) } - if res.State != vm.HaltState.String() { + if res.State != vmstate.Halt.String() { return cid.ID{}, fmt.Errorf("NNS contract fault exception: %s", res.FaultException) } else if len(res.Stack) == 0 { return cid.ID{}, errors.New("empty stack in invocation result") diff --git a/ns/nns_test.go b/ns/nns_test.go index 8428d8c..14d8f09 100644 --- a/ns/nns_test.go +++ b/ns/nns_test.go @@ -11,8 +11,8 @@ import ( "github.com/nspcc-dev/neo-go/pkg/rpc/response/result" "github.com/nspcc-dev/neo-go/pkg/smartcontract" "github.com/nspcc-dev/neo-go/pkg/util" - "github.com/nspcc-dev/neo-go/pkg/vm" "github.com/nspcc-dev/neo-go/pkg/vm/stackitem" + "github.com/nspcc-dev/neo-go/pkg/vm/vmstate" "github.com/nspcc-dev/neofs-contract/nns" cidtest "github.com/nspcc-dev/neofs-sdk-go/container/id/test" "github.com/stretchr/testify/require" @@ -95,7 +95,7 @@ func TestNNS_ResolveContainerName(t *testing.T) { require.Error(t, err) }) - testC.res.State = vm.HaltState.String() + testC.res.State = vmstate.Halt.String() t.Run("empty stack", func(t *testing.T) { _, err := n.ResolveContainerName(testContainerName)