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

Commit

Permalink
style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
localhuman committed Dec 6, 2017
1 parent 2529a9a commit 1f835db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions neo/SmartContract/ApplicationEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import pdb
from neo.UInt160 import UInt160


class ApplicationEngine(ExecutionEngine):

ratio = 100000
Expand Down Expand Up @@ -177,7 +178,6 @@ def CheckDynamicInvoke(self):
# read the current position of the stream
start_pos = self.CurrentContext.OpReader.stream.tell()


# normal app calls are stored in the op reader
# we read ahead past the next instruction 1 the next 20 bytes
script_hash = self.CurrentContext.OpReader.ReadBytes(21)[1:]
Expand All @@ -190,7 +190,6 @@ def CheckDynamicInvoke(self):
if b > 0:
return True


# if this is a dynamic app call, we will arrive here
# get the current executing script hash
current = UInt160(data=self.CurrentContext.ScriptHash())
Expand Down Expand Up @@ -237,7 +236,6 @@ def Execute(self):
logger.error("Dynamic invoke without proper contract")
return False


self.StepInto()

return not self._VMState & VMState.FAULT > 0
Expand Down
4 changes: 2 additions & 2 deletions neo/VM/ExecutionEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ def ExecuteOp(self, opcode, context):

script_hash = context.OpReader.ReadBytes(20)

is_normal_call =False
is_normal_call = False
for b in script_hash:
if b > 0:
is_normal_call=True
is_normal_call = True

if not is_normal_call:
script_hash = self.EvaluationStack.Pop().GetByteArray()
Expand Down

0 comments on commit 1f835db

Please sign in to comment.