Skip to content

Commit

Permalink
#86dtu8yuk - Include how to use NEP17Contract to Calling contracts do…
Browse files Browse the repository at this point in the history
…cumentation
  • Loading branch information
jplippi committed Jun 19, 2024
1 parent fc6fd89 commit 845aa70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/calling-smart-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ In addition, Neo3-Boa has an interface for contracts that adhere to the NEP-17 s
# calling_nep17_contract.py
from boa3.sc.compiletime import public
from boa3.sc.contracts import ContractManagement
from boa3.sc.types import Nep17Contract
from boa3.sc.types import Nep17Contract, UInt160


@public
def calling_other_contract(my_contract_hash: str) -> str:
def calling_other_contract(my_contract_hash: UInt160) -> str:
nep_17_contract: Nep17Contract = ContractManagement.get_contract(my_contract_hash)
return nep_17_contract.symbol()
```
Expand Down

0 comments on commit 845aa70

Please sign in to comment.