Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Jul 26, 2025

Summary

I introduced a bug in this method in the PR when I upgraded fortuna to handle the v2 contract. This bug is breaking the stats on callback errors.

How has this been tested?

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

@jayantk jayantk requested a review from tejasbadadare as a code owner July 26, 2025 03:17
@vercel
Copy link

vercel bot commented Jul 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
developer-hub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
entropy-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 26, 2025 3:17am

use_blockhash: request.use_blockhash,
callback_status: reader::RequestCallbackStatus::try_from(request.callback_status)?,
}))
if request.sequence_number == 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

get_request returns inactive requests and then it's the caller's responsibility to check. see https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/contracts/contracts/entropy/Entropy.sol#L1072

@aditya520 aditya520 merged commit e869010 into main Jul 28, 2025
11 checks passed
@aditya520 aditya520 deleted the fortuna_error_metrics branch July 28, 2025 16:52
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.

4 participants