Fix add minter method

This commit is contained in:
nolash 2021-03-21 18:55:55 +01:00
parent d37657ceb7
commit d030696b18
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -53,9 +53,9 @@ class GiftableToken(TxFactory):
return GiftableToken.__bytecode
def add_minter(self, contract_address, sender_address, address):
def add_minter(self, contract_address, sender_address, address, tx_format=TxFormat.JSONRPC):
enc = ABIContractEncoder()
enc.method('mintTo')
enc.method('addMinter')
enc.typ(ABIContractType.ADDRESS)
enc.address(address)
data = enc.get()