BUG: fix2 incompatibility with web3==4.0.0b11

This commit is contained in:
Victor
2018-03-02 11:37:22 -07:00
committed by GitHub
parent f990ecf14d
commit b4e5b699bd
+4
View File
@@ -57,6 +57,8 @@ class Marketplace:
self.web3 = Web3(HTTPProvider(ETH_REMOTE_NODE))
contract_url = urllib.urlopen(MARKETPLACE_CONTRACT)
self.mkt_contract_address = Web3.toChecksumAddress(
contract_url.readline().decode(
contract_url.info().get_content_charset()).strip())
@@ -69,6 +71,8 @@ class Marketplace:
abi=abi,
)
contract_url = urllib.urlopen(ENIGMA_CONTRACT)
self.eng_contract_address = Web3.toChecksumAddress(
contract_url.readline().decode(
contract_url.info().get_content_charset()).strip())