-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add reentrancy guard to VRFCoordinatorV2Mock to align its behaviour w… #10585
Conversation
…ith VRFCoordinatorV2
I see that you haven't updated any README files. Would it make sense to do so? |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6149669844 |
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6149694705 |
@@ -262,7 +262,7 @@ describe('VRFCoordinatorV2Mock', () => { | |||
expect(receipt.events[0].args['success']).to.equal(true) | |||
assert( | |||
receipt.events[0].args['payment'] | |||
.sub(BigNumber.from('100119017000000000')) | |||
.sub(BigNumber.from('100119403000000000')) |
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.
If you have the time, some foundry tests on the mockfile could be nice. However, I don't think it's worth the effort ever adding typescript/hardhat tests, since we don't really plan on working with that software going forward.
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.
Sure, I'll try to add Foundry tests for VRFCoordinatorV2Mock. Shall I add it as a follow up PR to this?
Running downstream job at https://github.com/smartcontractkit/operator-ui/actions/runs/6152766449 |
SonarQube Quality Gate 0 Bugs No Coverage information |
Motivation
Solution
Testing