From a2dc626d4f537d19c94e629e153c2e335e85d13c Mon Sep 17 00:00:00 2001 From: ProgramErgoSum Date: Tue, 29 Aug 2017 08:16:39 +0530 Subject: [PATCH] IP addresses and file paths obfuscated. --- js/deploy-contract.js | 4 ++-- js/test-contract-0.js | 2 +- js/test-contract-1.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/deploy-contract.js b/js/deploy-contract.js index 56d9cef..5039e92 100644 --- a/js/deploy-contract.js +++ b/js/deploy-contract.js @@ -3,9 +3,9 @@ var fs = require('fs'); // var ethHttpProvider = new Web3.providers.HttpProvider("http://18.xxx.xxx.xxx:8545"); var web3 = new Web3(ethHttpProvider); -var abiFile = fs.readFileSync('Lister.abi').toString(); +var abiFile = fs.readFileSync('/Users/nsubrahm/wrkspc-sol/lister/lister/bin/sol/Lister.abi').toString(); var abiDef = JSON.parse(abiFile); -var byteCode = fs.readFileSync('Lister.bin').toString(); +var byteCode = fs.readFileSync('/Users/nsubrahm/wrkspc-sol/lister/lister/bin/sol/Lister.bin').toString(); // var listContract = web3.eth.contract(abiDef); var deployedContract = listContract.new(['A'], diff --git a/js/test-contract-0.js b/js/test-contract-0.js index b660966..760f213 100644 --- a/js/test-contract-0.js +++ b/js/test-contract-0.js @@ -2,7 +2,7 @@ var Web3 = require('web3'); var fs = require('fs'); // var web3 = new Web3(new Web3.providers.HttpProvider("http://18.xxx.xxxx.xxx:8545")); -var abiFile = fs.readFileSync('Lister.abi').toString(); +var abiFile = fs.readFileSync('/Users/nsubrahm/wrkspc-sol/lister/lister/bin/sol/Lister.abi').toString(); var abiDef = JSON.parse(abiFile); var ListingContract = web3.eth.contract(abiDef); var contractInstance = ListingContract.at('0x2a30f190a7d5abd6070d9ed5ec06fb4ab410bcc0'); diff --git a/js/test-contract-1.js b/js/test-contract-1.js index d5282fa..93e2b1a 100644 --- a/js/test-contract-1.js +++ b/js/test-contract-1.js @@ -2,7 +2,7 @@ var Web3 = require('web3'); var fs = require('fs'); // var web3 = new Web3(new Web3.providers.HttpProvider("http://18.xxx.xxx.xxx:8545")); -var abiFile = fs.readFileSync('Lister.abi').toString(); +var abiFile = fs.readFileSync('/Users/nsubrahm/wrkspc-sol/lister/lister/bin/sol/Lister.abi').toString(); var abiDef = JSON.parse(abiFile); var ListingContract = web3.eth.contract(abiDef); var contractInstance = ListingContract.at('0x2a30f190a7d5abd6070d9ed5ec06fb4ab410bcc0');