mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-26 11:46:47 +01:00
Fix add minter method
This commit is contained in:
parent
d37657ceb7
commit
d030696b18
@ -53,9 +53,9 @@ class GiftableToken(TxFactory):
|
|||||||
return GiftableToken.__bytecode
|
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 = ABIContractEncoder()
|
||||||
enc.method('mintTo')
|
enc.method('addMinter')
|
||||||
enc.typ(ABIContractType.ADDRESS)
|
enc.typ(ABIContractType.ADDRESS)
|
||||||
enc.address(address)
|
enc.address(address)
|
||||||
data = enc.get()
|
data = enc.get()
|
||||||
|
Loading…
Reference in New Issue
Block a user