New answers tagged


You can use Waffle with the revertedWith Chai Matcher: An example for this can be seen here:


Found a hack in the course: set the gas fee to something very, very low like 0.0000000001 and it works. I still don't understand why I need gas for my local truffle server, and if I do, why the account doesn't offer a way to get some test eth to use. Maybe I'll learn all this later in the tutorial.


Simply run npm i @truffle/contract this will install the right package. trufle-contract is now renamed to @truffle/contract. Check npm docs

Top 50 recent answers are included