Open pszabop opened 6 years ago
I've been having the same issue. I had no idea I had to set the .defaults
value, but when I did I definitely got something different. The documentation is very unclear on this.
Thanks @pszabop for raising this issue. @gnidan can you look this over and make sure this is good to go as-is with the current version? Once you give the thumbs up, I can update the docs.
Thanks for raising the issue, and upcoming update to docs! I had the same problem
The bootstrap nodejs documentation is missing a critical item that gives a very obscure error, and it took two days to resolve with help from @gnidan on gitter. (thanks @gnidan!)
The documentation shows this.
To make it function correctly, you need to create a web3 provider and use the accounts from it. For the mocha test framework this happens automatically, but if you are making your nodejs application it does not:
And alas the error if the
defaults.
from:is not set is very obscure. I'll file a separate issue for truffle-contract, it should throw a useful error if
from` is not set. The error: