Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs');
- var publish_service_abi = JSON.parse(fs.readFileSync('./PublishService_abi.json', 'utf8'));
- console.log(publish_service_abi); //prints the contents of the abi
- var PublishServiceContractAddress = "0x0da136781e562e28fb1c0b3efc8ce9d8b4e226f2";
- PublishServiceContract = await new web3.eth.Contract(publish_service_abi,PublishServiceContractAddress);
- PublishServiceContract = await new web3.eth.Contract(publish_service_abi.abi,PublishServiceContractAddress);
Add Comment
Please, Sign In to add comment