From 1f835dbf0576afdfd6c49207dfd0ee699cb672e9 Mon Sep 17 00:00:00 2001 From: Thomas Saunders Date: Tue, 5 Dec 2017 21:23:06 -0600 Subject: [PATCH] style fixes --- neo/SmartContract/ApplicationEngine.py | 4 +--- neo/VM/ExecutionEngine.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/neo/SmartContract/ApplicationEngine.py b/neo/SmartContract/ApplicationEngine.py index 42cec9e5c..e17ba024c 100644 --- a/neo/SmartContract/ApplicationEngine.py +++ b/neo/SmartContract/ApplicationEngine.py @@ -17,6 +17,7 @@ import pdb from neo.UInt160 import UInt160 + class ApplicationEngine(ExecutionEngine): ratio = 100000 @@ -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:] @@ -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()) @@ -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 diff --git a/neo/VM/ExecutionEngine.py b/neo/VM/ExecutionEngine.py index 34d5a2051..041758958 100644 --- a/neo/VM/ExecutionEngine.py +++ b/neo/VM/ExecutionEngine.py @@ -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()