36933/cannot-read-property-getblock-of-undefined
I am facing issues with truffle test. When I run truffle test, I am getting the following error:
TypeError: Cannot read property ' getBlock ' of undefined.
But it runs fine on console.
getBlock is used by web3 and to use it, you have to mention the web3 provider in your code. Like this:
if (typeof web3 !== 'undefined') { // Use Mist/MetaMask's provider web3 = new Web3(web3.currentProvider);
Cannot read property 'curve' of undefined ...READ MORE
I am starting with Azure Blockchain. When ...READ MORE
You could use a recent feature known ...READ MORE
First, your sendMoney() call is stored into ...READ MORE
This was a bug. They've fixed it. ...READ MORE
Summary: Both should provide similar reliability of ...READ MORE
The json file required to run dev is ...READ MORE
I have been working with Interacting a ...READ MORE
In the code that you are using ...READ MORE
Try something like this for contracts that ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.