Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Oct 3, 2025

Summary

This PR removes the check that allows us to mark callbacks as failed (even if enough gas wasn't provided) if they revert with a non-empty return code.

Rationale

When we wrote this initally, we thought that all out-of-gas reverts from calling contracts would bubble up and be caught by the ret.length == 0 condition. However, we have found that some contracts catch out-of-gas reverts and then revert with a different error code. This means we can end up calling these callbacks without enough gas.

Simple fix here is to require enough gas to be provided regardless of the revert code.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@vercel
Copy link

vercel bot commented Oct 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

7 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
api-reference Skipped Skipped Oct 3, 2025 6:32pm
component-library Skipped Skipped Oct 3, 2025 6:32pm
developer-hub Skipped Skipped Oct 3, 2025 6:32pm
entropy-explorer Skipped Skipped Oct 3, 2025 6:32pm
insights Skipped Skipped Oct 3, 2025 6:32pm
proposals Skipped Skipped Oct 3, 2025 6:32pm
staking Skipped Skipped Oct 3, 2025 6:32pm

assignedSequenceNumber,
userRandomNumber,
provider1Proofs[assignedSequenceNumber]
);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test used to fail before the change

@jayantk jayantk merged commit f6df66d into main Oct 3, 2025
11 checks passed
@jayantk jayantk deleted the entropy_callback_err branch October 3, 2025 18:46
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.

3 participants