mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2026-05-01 06:23:44 +02:00
Rename mint to MintTo, add address
This commit is contained in:
@@ -74,8 +74,7 @@ helper = EthTxExecutor(
|
||||
signer,
|
||||
chain_id,
|
||||
block=args.ww,
|
||||
)
|
||||
|
||||
)
|
||||
|
||||
def main():
|
||||
|
||||
@@ -114,19 +113,10 @@ def main():
|
||||
)
|
||||
|
||||
if args.account != None:
|
||||
mint_total = len(args.account) * args.amount
|
||||
tx = c.functions.mint(mint_total)
|
||||
(tx_hash, rcpt) = helper.sign_and_send(
|
||||
[
|
||||
c.functions.mint(mint_total).buildTransaction,
|
||||
],
|
||||
force_wait=True,
|
||||
)
|
||||
|
||||
for a in args.account:
|
||||
(tx_hash, rcpt) = helper.sign_and_send(
|
||||
[
|
||||
c.functions.transfer(a, args.amount).buildTransaction,
|
||||
c.functions.mintTo(a, args.amount).buildTransaction,
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ def main():
|
||||
|
||||
(tx_hash, rcpt) = helper.sign_and_send(
|
||||
[
|
||||
c.functions.mint(args.amount).buildTransaction,
|
||||
c.functions.mintTo(args.amount).buildTransaction,
|
||||
],
|
||||
force_wait=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user