Guest User

Untitled

a guest
Apr 26th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var fs = require('fs');
  2. var publish_service_abi = JSON.parse(fs.readFileSync('./PublishService_abi.json', 'utf8'));
  3. console.log(publish_service_abi); //prints the contents of the abi
  4. var PublishServiceContractAddress = "0x0da136781e562e28fb1c0b3efc8ce9d8b4e226f2";
  5. PublishServiceContract = await new web3.eth.Contract(publish_service_abi,PublishServiceContractAddress);
  6.  
  7. PublishServiceContract = await new web3.eth.Contract(publish_service_abi.abi,PublishServiceContractAddress);
Add Comment
Please, Sign In to add comment