Rename mint to MintTo, add address

This commit is contained in:
nolash
2021-02-15 18:16:13 +01:00
parent ddba87a36e
commit 66e6eca20f
8 changed files with 10 additions and 20 deletions

View File

@@ -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,
],
)

View File

@@ -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,
)