Guest User

Untitled

a guest
Nov 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. def __init__(self, dataStoreContractAddress, contractAbiFile):
  2. with open(contractAbiFile, 'r') as abi_definition:
  3. self.abi = json.load(abi_definition)
  4. self.dataStoreContractAddress = dataStoreContractAddress
  5. self.w3 = Web3(IPCProvider('/home/a/.ethereum/geth.ipc'))
  6. self.w3_contract = self.w3.eth.contract(self.abi, self.dataStoreContractAddress)
Add Comment
Please, Sign In to add comment