Fix BE web3 read when proposal has no address (#239)
This commit is contained in:
parent
3b42295097
commit
00561f5121
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue