-
Notifications
You must be signed in to change notification settings - Fork 66
Chore: Change capital pool unit tests to use ethers instead of web3/truffle #600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
652f98d
to
a6b9017
Compare
const chainlinkNewAsset = await ChainlinkAggregatorMock.new(); | ||
await chainlinkNewAsset.setLatestAnswer(new BN((1e18).toString())); | ||
const chainlinkSteth = await ChainlinkAggregatorMock.deploy(); | ||
await chainlinkSteth.setLatestAnswer(WeiPerEther); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good find this constant, was unaware
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall
Would like a function for that hex(code.padEnd(8, '\0') sequence since it's used so often.
That 8 is the same i don't see the use case for a parameter there (yet).
a6b9017
to
8f45f5f
Compare
Context
Changes proposed in this pull request
This PR replaces web3/truffle with ethers in all the capital pool unit tests
Test plan
Checklist
Review
When reviewing a PR, please indicate intention in comments using the following emojis: