Fix BE web3 read when proposal has no address (#239)

This commit is contained in:
AMStrix 2018-12-05 12:05:57 -06:00 committed by Daniel Ternyak
parent 3b42295097
commit 00561f5121
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ def get_crowd_fund_abi():
def read_proposal(address):
if not address:
return None
current_web3.eth.defaultAccount = '0x537680D921C000fC52Af9962ceEb4e359C50F424' if not current_web3.eth.accounts else \
current_web3.eth.accounts[0]
crowd_fund_abi = get_crowd_fund_abi()