diff --git a/pkg/core/interop_neo.go b/pkg/core/interop_neo.go index 4696ffdd7..9dacb49be 100644 --- a/pkg/core/interop_neo.go +++ b/pkg/core/interop_neo.go @@ -17,6 +17,8 @@ import ( ) const ( + // MaxContractDescriptionLen is the maximum length for contract description. + MaxContractDescriptionLen = 65536 // MaxContractScriptSize is the maximum script size for a contract. MaxContractScriptSize = 1024 * 1024 // MaxContractParametersNum is the maximum number of parameters for a contract. @@ -494,7 +496,7 @@ func (ic *interopContext) createContractStateFromVM(v *vm.VM) (*state.Contract, return nil, errors.New("too big email") } desc := v.Estack().Pop().Bytes() - if len(desc) > MaxContractStringLen { + if len(desc) > MaxContractDescriptionLen { return nil, errors.New("too big description") } contract := &state.Contract{