https://github.com/cfelde/truffle-requirebug
Truffle bug POC
https://github.com/cfelde/truffle-requirebug
Last synced: about 1 year ago
JSON representation
Truffle bug POC
- Host: GitHub
- URL: https://github.com/cfelde/truffle-requirebug
- Owner: cfelde
- Created: 2020-01-08T09:07:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T09:10:52.000Z (over 6 years ago)
- Last Synced: 2025-02-09T03:16:02.816Z (over 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Truffle bug test
You might need `npm install @openzeppelin/test-helpers` first.
To run, do `truffle test`
This works as expected in truffle v5.1.4 and below: `npm install -g truffle@5.1.4`
It fails with 5.1.5 and later with this error:
```
1) Contract: When testing contract, it:
should detect a require fail:
AssertionError: Expected an exception but none was received
at expectException (node_modules/@openzeppelin/test-helpers/src/expectRevert.js:25:10)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at expectRevert (node_modules/@openzeppelin/test-helpers/src/expectRevert.js:74:3)
at Context. (test/test.js:9:9)
```