Summary or problem description
In Func ApplicationEngine.UpdateContract
|
AddGas(StoragePrice * (script?.Length ?? 0 + manifest?.Length ?? 0)); |
Here input of func AddGas can be zero, when both script and manifest is null or with 0 length.
Such script and manifest is also unreasonable.
Do you have any solution you want to propose?
Suggest change: throw exception for such script or manifest like here:
|
if (script.Length == 0 || script.Length > MaxContractLength) |
Neo Version
Where in the software does this update applies to?
Summary or problem description
In Func
ApplicationEngine.UpdateContractneo/src/neo/SmartContract/ApplicationEngine.Contract.cs
Line 58 in 4066a4f
Here input of func
AddGascan be zero, when both script and manifest is null or with 0 length.Such script and manifest is also unreasonable.
Do you have any solution you want to propose?
Suggest change: throw exception for such script or manifest like here:
neo/src/neo/SmartContract/ApplicationEngine.Contract.cs
Line 33 in 4066a4f
Neo Version
Where in the software does this update applies to?