13 Oct, 2018 /ethereum Asserting reverts when testing Solidity smart contracts with Truffle Require statements are a great tool to make sure that a Solidity function only gets executed when the right preconditions are met and that the results of functions meet the expectations. By adding
3 May, 2018 /ethereum Checking events when testing Solidity smart contracts with Truffle When testing Solidity smart contracts it is very helpful to check the events generated by those contracts. Especially asserting the arguments of the emitted events is a powerful tool. However, using web3 to