From 7e3a9bf29ef4972f5f97785078bcb14f53e13e6f Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Mon, 14 Dec 2020 13:30:55 +0300 Subject: [PATCH] nef: lower MaxScriptLength Follow neo-project/neo#2119 changes. --- pkg/smartcontract/nef/nef.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/smartcontract/nef/nef.go b/pkg/smartcontract/nef/nef.go index af2a420246..9d1088af86 100644 --- a/pkg/smartcontract/nef/nef.go +++ b/pkg/smartcontract/nef/nef.go @@ -29,7 +29,7 @@ const ( // Magic is a magic File header constant. Magic uint32 = 0x3346454E // MaxScriptLength is the maximum allowed contract script length. - MaxScriptLength = 1024 * 1024 + MaxScriptLength = 512 * 1024 // compilerFieldSize is the length of `Compiler` and `Version` File header fields in bytes. compilerFieldSize = 32 )