Skip to content

Commit

Permalink
https://github.com/neo-project/neo/pull/2312
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Apr 19, 2021
1 parent 4980ef4 commit 15f79a7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions neo3/contracts/interop/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ def get_time(engine: contracts.ApplicationEngine) -> int:


@register("System.Runtime.GetScriptContainer", 1 << 3, contracts.CallFlags.NONE)
def get_scriptcontainer(engine: contracts.ApplicationEngine) -> IInteroperable:
def get_scriptcontainer(engine: contracts.ApplicationEngine) -> vm.StackItem:
if not isinstance(engine.script_container, IInteroperable):
raise ValueError("script container is not a valid IInteroperable type")
container = cast(IInteroperable, engine.script_container)
return container
return engine.script_container.to_stack_item(engine.reference_counter)


@register("System.Runtime.GetExecutingScriptHash", 1 << 4, contracts.CallFlags.NONE)
Expand Down

0 comments on commit 15f79a7

Please sign in to comment.