commit f30b730022c4dc57efb224bd4cdae619565fa897
parent 975064f8e21721937fc3eac6b4c6e9f8c86d50e0
Author: nolash <dev@holbrook.no>
Date: Wed, 16 Dec 2020 15:32:43 +0100
Fix abi path
Diffstat:
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/python/erc20_single_shot_faucet/faucet.py b/python/erc20_single_shot_faucet/faucet.py
@@ -19,12 +19,13 @@ class Faucet:
__abi = None
__bytecode = None
+ __address = None
def __init__(self, w3, address, signer_address=None):
abi = Faucet.abi()
Faucet.bytecode()
- self.address =address
- self.contract = w3.eth.contract(abi=abi, address=self.address)
+ self.__address = address
+ self.contract = w3.eth.contract(abi=abi, address=address)
self.w3 = w3
if signer_address != None:
self.signer_address = signer_address
@@ -74,5 +75,5 @@ class Faucet:
return tx_hash
- def address():
- return self.address
+ def address(self):
+ return self.__address
diff --git a/python/erc20_single_shot_faucet/runnable/deploy.py b/python/erc20_single_shot_faucet/runnable/deploy.py
@@ -44,7 +44,7 @@ def main():
token_address = args.t
- f = open(os.path.join(args.abi_dir, 'ERC20SingleShotFaucetStorage.abi.json'), 'r')
+ f = open(os.path.join(args.abi_dir, 'ERC20SingleShotFaucetStorage.json'), 'r')
abi = json.load(f)
f.close()
@@ -57,7 +57,7 @@ def main():
r = w3.eth.getTransactionReceipt(tx_hash)
store_address = r.contractAddress
- f = open(os.path.join(args.abi_dir, 'ERC20SingleShotFaucet.abi.json'), 'r')
+ f = open(os.path.join(args.abi_dir, 'ERC20SingleShotFaucet.json'), 'r')
abi = json.load(f)
f.close()