From 34d2eaf00efc428c9672406f8ebcdf122e6dbab6 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Tue, 17 Nov 2020 22:10:40 +0300 Subject: [PATCH] manifest: update maximum possible length As per neo-project/neo#2002. --- pkg/smartcontract/manifest/manifest.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/smartcontract/manifest/manifest.go b/pkg/smartcontract/manifest/manifest.go index f4f8ad636..8b813bd2e 100644 --- a/pkg/smartcontract/manifest/manifest.go +++ b/pkg/smartcontract/manifest/manifest.go @@ -2,6 +2,7 @@ package manifest import ( "encoding/json" + "math" "github.com/nspcc-dev/neo-go/pkg/io" "github.com/nspcc-dev/neo-go/pkg/util" @@ -9,7 +10,7 @@ import ( const ( // MaxManifestSize is a max length for a valid contract manifest. - MaxManifestSize = 4096 + MaxManifestSize = math.MaxUint16 // MethodInit is a name for default initialization method. MethodInit = "_initialize"