diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index ef81c017..ad3dae21 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 = big.NewInt(int64(v)) + result.Value = int64(v) case int64: result.Type = sc.IntegerType - result.Value = big.NewInt(v) + result.Value = v case uint64: result.Type = sc.IntegerType - result.Value = new(big.Int).SetUint64(v) + result.Value = int64(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 5239ffa1..f977d935 100644 --- a/pkg/morph/client/client_test.go +++ b/pkg/morph/client/client_test.go @@ -1,7 +1,6 @@ package client import ( - "math/big" "testing" sc "github.com/nspcc-dev/neo-go/pkg/smartcontract" @@ -21,12 +20,6 @@ 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",