Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 5f795e9

Browse files
committed
Merge branch 'snippets' of https://github.com/nftlabs/nftlabs-sdk-python into snippets
2 parents fe832a2 + f666ce3 commit 5f795e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

thirdweb/modules/currency.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,19 @@ def burn_from(self, from_address: str, amount: int):
150150
return self.execute_tx(self.__abi_module.burn_from.build_transaction(
151151
from_address, amount, self.get_transact_opts()
152152
))
153+
153154
def transfer(self, to_address: str, amount: int):
154155
"""
155156
:param to_address: The address to transfer to
156157
:param amount: The amount to transfer
157158
158159
Transfers the given amount from the current address
159160
"""
160-
if(self.__abi_module.is_restricted_transfer()):
161+
if(self.__abi_module.is_restricted_transfer.call()):
161162
raise RestrictedTransferError(self.address)
162163
return self.execute_tx(self.__abi_module.transfer.build_transaction(
163164
self.get_signer_address(), to_address, amount, self.get_transact_opts()
164-
))
165+
))
165166

166167
def transfer_from(self, from_address: str, to_address: str, amount: int):
167168
"""

0 commit comments

Comments
 (0)