Skip to content

Commit

Permalink
https:/neo-project/neo/pull/2166
Browse files Browse the repository at this point in the history
  • Loading branch information
ixje committed Feb 3, 2021
1 parent ff129b3 commit 95ad8b6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion neo3/contracts/applicationengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def get_invocation_counter(self) -> int:
"""
Get the number of times the current contract has been called during this execute() run.
Note: the counter increases with every "System.Contract.Call" or "System.Contract.CallEx" SYSCALL
Note: the counter increases with every "System.Contract.CallEx" SYSCALL
Raises:
ValueError: if the contract has not been called.
Expand Down
9 changes: 0 additions & 9 deletions neo3/contracts/interop/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@
from neo3.contracts.interop import register


@register("System.Contract.Call", 1 << 15, contracts.native.CallFlags.ALLOW_CALL, False,
[types.UInt160, str, vm.ArrayStackItem])
def contract_call(engine: contracts.ApplicationEngine,
contract_hash: types.UInt160,
method: str,
args: vm.ArrayStackItem) -> None:
contract_callex(engine, contract_hash, method, args, contracts.native.CallFlags.ALL)


@register("System.Contract.CallEx", 1 << 15, contracts.native.CallFlags.ALLOW_CALL, False,
[types.UInt160, str, vm.ArrayStackItem, contracts.native.CallFlags])
def contract_callex(engine: contracts.ApplicationEngine,
Expand Down
2 changes: 1 addition & 1 deletion neo3/vm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def emit_contract_call(self, script_hash, operation: str) -> None:
self.emit(OpCode.NEWARRAY)
self.emit_push(operation)
self.emit_push(script_hash.to_array())
self.emit_syscall(_syscall_name_to_int("System.Contract.Call"))
self.emit_syscall(_syscall_name_to_int("System.Contract.CallEx"))

0 comments on commit 95ad8b6

Please sign in to comment.