|
|
@ -126,13 +126,13 @@ if (args.address or len(args.solidity_file)): |
|
|
|
else: |
|
|
|
else: |
|
|
|
try: |
|
|
|
try: |
|
|
|
if args.infura_mainnet: |
|
|
|
if args.infura_mainnet: |
|
|
|
eth = EthJsonRpc('mainnet.infura.io', 443, True) |
|
|
|
eth = EthJsonRpc('mainnet.infura.io', 443, True) |
|
|
|
elif args.infura_rinkeby: |
|
|
|
elif args.infura_rinkeby: |
|
|
|
eth = EthJsonRpc('rinkeby.infura.io', 443, True) |
|
|
|
eth = EthJsonRpc('rinkeby.infura.io', 443, True) |
|
|
|
elif args.infura_kovan: |
|
|
|
elif args.infura_kovan: |
|
|
|
eth = EthJsonRpc('kovan.infura.io', 443, True) |
|
|
|
eth = EthJsonRpc('kovan.infura.io', 443, True) |
|
|
|
elif args.infura_ropsten: |
|
|
|
elif args.infura_ropsten: |
|
|
|
eth = EthJsonRpc('ropsten.infura.io', 443, True) |
|
|
|
eth = EthJsonRpc('ropsten.infura.io', 443, True) |
|
|
|
else: |
|
|
|
else: |
|
|
|
eth = EthJsonRpc(args.rpchost, args.rpcport, args.rpctls) |
|
|
|
eth = EthJsonRpc(args.rpchost, args.rpcport, args.rpctls) |
|
|
|
|
|
|
|
|
|
|
@ -159,7 +159,7 @@ elif (len(args.solidity_file)): |
|
|
|
except CompilerError as e: |
|
|
|
except CompilerError as e: |
|
|
|
exitWithError(e) |
|
|
|
exitWithError(e) |
|
|
|
|
|
|
|
|
|
|
|
# Max. 16 contracts supported! |
|
|
|
# Max. 16 input files supported! |
|
|
|
|
|
|
|
|
|
|
|
contract = ETHContract(bytecode, name = name, address = util.get_indexed_address(index)) |
|
|
|
contract = ETHContract(bytecode, name = name, address = util.get_indexed_address(index)) |
|
|
|
index += 1 |
|
|
|
index += 1 |
|
|
|