mirror of
https://github.com/chaintool-py/eth-erc20.git
synced 2024-11-22 17:56:48 +01:00
Enable chain id for token tx builder class
This commit is contained in:
parent
5be31a697f
commit
d502b13e20
@ -83,7 +83,7 @@ minter_address = args.minter_address
|
||||
|
||||
|
||||
def main():
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle, chain_id=chain_id)
|
||||
(tx_hash_hex, o) = c.add_minter(token_address, signer_address, minter_address)
|
||||
rpc.do(o)
|
||||
o = receipt(tx_hash_hex)
|
||||
|
@ -88,7 +88,7 @@ token_decimals = args.decimals
|
||||
|
||||
|
||||
def main():
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle, chain_id=chain_id)
|
||||
(tx_hash_hex, o) = c.constructor(signer_address, token_name, token_symbol, token_decimals)
|
||||
rpc.do(o)
|
||||
o = receipt(tx_hash_hex)
|
||||
|
@ -87,7 +87,7 @@ token_value = args.value
|
||||
|
||||
|
||||
def main():
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle)
|
||||
c = GiftableToken(signer=signer, gas_oracle=gas_oracle, nonce_oracle=nonce_oracle, chain_id=chain_id)
|
||||
(tx_hash_hex, o) = c.mint_to(token_address, signer_address, recipient_address, token_value)
|
||||
rpc.do(o)
|
||||
o = receipt(tx_hash_hex)
|
||||
|
Loading…
Reference in New Issue
Block a user