Enable chain id for token tx builder class

This commit is contained in:
nolash 2021-03-22 15:59:38 +01:00
parent 5be31a697f
commit d502b13e20
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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