I've got Solidity v0.4.24
And I'm doing this:
require(false,"this is a test");
When I run
truffle test I get the revert, but I cant see the error message.
Any ideas what could be wrong?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
You can't currently use web3 to inspect error messages thrown from
revert. In the future it may be possible though, so adding these to your smart contract helps to future proof against this development.
You can follow the discussion at: