You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Deployed a react app on rinkeby using infura url works just fine.
But replacing the provider to use localhost on 7545 running on ganache, the browser loads the first time but then crashes and ganache prompts to relaunch with the error below:
Deployed a react app on rinkeby using infura url works just fine.
But replacing the provider to use localhost on 7545 running on ganache, the browser loads the first time but then crashes and ganache prompts to relaunch with the error below:
Here's the deploy script :
const HDWalletProvider = require('truffle-hdwallet-provider');
const Web3 = require('web3');
const compiledEds = require('./build/Endorsement.json');
const provider = new HDWalletProvider(
mnemonic,
'http://localhost:7545'
);
const web3 = new Web3(provider);
const deploy = async (accountNumber = 0) => {
const accounts = await web3.eth.getAccounts();
const deployAccount = accounts[accountNumber];
const data ='0x' + compiledEds.bytecode;
const gas = 4000000;
const gasPrice = web3.utils.toWei('2','gwei');
};
deploy();
PLATFORM: linux
GANACHE VERSION: 1.0.2
EXCEPTION:
APPLICATION LOG:
The text was updated successfully, but these errors were encountered: