Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/2194
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Feb 5, 2021
1 parent b26696c commit 094c821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo3/contracts/interop/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ def native_post_persist(engine: contracts.ApplicationEngine) -> None:
@register("System.Contract.CallNative", 0, contracts.CallFlags.NONE, [str])
def call_native(engine: contracts.ApplicationEngine, name: str) -> None:
contract = contracts.NativeContract.get_contract_by_name(name)
if contract is None or contract.active_block_index > engine.snapshot.persisting_block.index:
if contract is None or contract.active_block_index > engine.snapshot.block_height:
raise ValueError
contract.invoke(engine)

0 comments on commit 094c821

Please sign in to comment.