-
Notifications
You must be signed in to change notification settings - Fork 306
feat(entropy): Better tester contract #2679
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| ) public payable returns (uint64 sequenceNumber) { | ||
| requireGasUsageAboveLimit(callbackGasUsage); | ||
|
|
||
| IEntropy entropy = IEntropy(address(getEntropyWithDefault(_entropy))); |
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.
this looks a bit awkward. Maybe make getEntropyWithDefault just return the address?
| * @notice Ensures the gas usage is above the minimum required limit | ||
| * @param gasUsage The gas usage to check | ||
| */ | ||
| function requireGasUsageAboveLimit(uint32 gasUsage) internal pure { |
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.
what's this? we are not storing callback results in this contract 🤔
Summary
Update the EntropyTester contract to support both the v1 and v2 request flows, as well as more configurable callback conditions.
Rationale
These changes will help us test entropy deployments more thoroughly.
How has this been tested?