Skip to content

Conversation

@justuswilhelm
Copy link
Contributor

Fixes #775

🚀 Description

We now ensure that if an exception is thrown while awaiting the promise,
the exception has to be a revert. We throw 'Expected revert not
received' only afterwards. This solves any problems with confusing the
word 'revert'.

  • 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • ✅ I've added tests where applicable to test my new functionality.
  • 📖 I've made sure that my contracts are well-documented.
  • 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

We now ensure that if an exception is thrown while awaiting the promise,
the exception _has_ to be a revert. We throw 'Expected revert not
received' only afterwards. This solves any problems with confusing the
word 'revert'.

Fix OpenZeppelin#775
@nventuro
Copy link
Contributor

Great @justuswilhelm, thanks! I can't wait to get to #1078 so that we can properly test this stuff and prevent it in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

assertRevert.js passes when no revert occurred

2 participants