Skip to content

Commit

Permalink
Get ready for going Rinkeby
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminaaron committed Nov 18, 2019
1 parent 83c580a commit 4ff4270
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const title = 'FIN4OracleEngine';
const HDWalletProvider = require('@truffle/hdwallet-provider');
const Tx = require('ethereumjs-tx').Transaction;
const Web3 = require('web3');
const networkID = 0;
const networkURL = 'http://localhost:7545'; // 'https://rinkeby.infura.io/v3/' + config.INFURA_API_KEY;
const networkID = 4;
const networkURL = 'https://rinkeby.infura.io/v3/' + config.INFURA_API_KEY;
const provider = new HDWalletProvider(config.ORACLE_ACCOUNT.MNEMONIC, networkURL);
const web3 = new Web3(provider);
const accountAddress = web3.currentProvider.addresses[0];
Expand Down Expand Up @@ -39,7 +39,6 @@ app.post('/sensor', (request, response) => {
let callFin4OracleHub = async function(sensorID, timestamp, data, response) {
console.log('Attempting to call Fin4OracleHub.receiveSensorSignal()', contractAddress, sensorID, timestamp, data);

// Fin4OracleHub.receiveSensorSignal(string memory sensorID, uint timestamp, string memory data)
let callData = contract.methods.receiveSensorSignal(sensorID, timestamp, data).encodeABI();

web3.eth.getGasPrice((e, gasPrice) => {
Expand Down

0 comments on commit 4ff4270

Please sign in to comment.