erc20-faucet

ERC20 token faucet
Log | Files | Refs

commit 975064f8e21721937fc3eac6b4c6e9f8c86d50e0
parent 058414dc941a60cc18c64219784dda3d8566a249
Author: nolash <dev@holbrook.no>
Date:   Sat, 12 Dec 2020 14:17:48 +0100

Add address to python wrapper

Diffstat:
Mpython/erc20_single_shot_faucet/faucet.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/python/erc20_single_shot_faucet/faucet.py b/python/erc20_single_shot_faucet/faucet.py @@ -23,7 +23,8 @@ class Faucet: def __init__(self, w3, address, signer_address=None): abi = Faucet.abi() Faucet.bytecode() - self.contract = w3.eth.contract(abi=abi, address=address) + self.address =address + self.contract = w3.eth.contract(abi=abi, address=self.address) self.w3 = w3 if signer_address != None: self.signer_address = signer_address @@ -71,3 +72,7 @@ class Faucet: 'from': self.signer_address, }) return tx_hash + + + def address(): + return self.address