New answers tagged

1

You can use Waffle with the revertedWith Chai Matcher: https://ethereum-waffle.readthedocs.io/en/latest/matchers.html#revert-with-message An example for this can be seen here: https://github.com/gnosis/safe-contracts/blob/main/test/libraries/MultiSend.spec.ts#L51


0

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.


0

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