Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
update contract return type verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Jul 9, 2019
1 parent 9bf3c1e commit 003ff11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neo/SmartContract/StateMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,7 @@ def Contract_Create(self, engine: ExecutionEngine):
if len(param_list) > 252:
return False
return_type = int(engine.CurrentContext.EvaluationStack.Pop().GetBigInteger())
try:
ContractParameterType(return_type)
except ValueError:
if return_type > 0xff:
raise ValueError("Invalid return type data popped from stack")

contract_properties = int(engine.CurrentContext.EvaluationStack.Pop().GetBigInteger())
Expand Down

0 comments on commit 003ff11

Please sign in to comment.