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

use snapshot for ED/EDT validation #998

Merged
merged 1 commit into from
Jul 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion neo/SmartContract/ApplicationEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def CheckDynamicInvoke(self):
return current_contract_state.HasDynamicInvoke
elif opcode in [OpCode.CALL_ED, OpCode.CALL_EDT]:
current = UInt160(data=cx.ScriptHash())
current_contract_state = self._Table.GetContractState(current.ToBytes())
current_contract_state = self.snapshot.Contracts[current.ToBytes()]
return current_contract_state.HasDynamicInvoke

else:
Expand Down