diff --git a/ns/nns.go b/ns/nns.go index 2a2ee09..f867b73 100644 --- a/ns/nns.go +++ b/ns/nns.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "math/big" "net/url" "github.com/nspcc-dev/neo-go/pkg/core/state" @@ -122,7 +123,7 @@ func (n *NNS) ResolveContainerName(name string) (cid.ID, error) { }, { Type: smartcontract.IntegerType, - Value: int64(nns.TXT), + Value: big.NewInt(int64(nns.TXT)), }, }) if err != nil { diff --git a/ns/nns_test.go b/ns/nns_test.go index 14d8f09..e777b7c 100644 --- a/ns/nns_test.go +++ b/ns/nns_test.go @@ -36,7 +36,7 @@ func (x *testNeoClient) call(contract util.Uint160, method string, prm []smartco require.Len(x.t, prm, 2) require.Equal(x.t, smartcontract.StringType, prm[0].Type) require.Equal(x.t, smartcontract.IntegerType, prm[1].Type) - require.EqualValues(x.t, nns.TXT, prm[1].Value) + require.EqualValues(x.t, big.NewInt(int64(nns.TXT)), prm[1].Value) val, ok := prm[0].Value.(string) require.True(x.t, ok)