Skip to content

fix(hot): re-export HotError and fix try_init return handling in fuzz target (#1185) - #1378

Closed
lienhoatienphung-svg wants to merge 1 commit into
CalloraOrg:mainfrom
lienhoatienphung-svg:feature/1185-mend-hot-fuzz-target
Closed

lienhoatienphung-svg wants to merge 1 commit into
CalloraOrg:mainfrom
lienhoatienphung-svg:feature/1185-mend-hot-fuzz-target

Conversation

@lienhoatienphung-svg

Copy link
Copy Markdown

Summary

Fixes the compile error in callora-hot-fuzz by publicly re-exporting HotError from callora_hot and matching the Result returned by client.try_init(...) without a trailing semicolon.

Key Changes

  • contracts/hot/src/lib.rs:
    • Changes use errors::HotError; to pub use errors::HotError; so downstream crates and fuzz targets can import callora_hot::HotError.
  • contracts/hot/fuzz/targets/main.rs:
    • Returns client.try_init(&admin, &signer, &Some(FUZZ_COOLDOWN)) from the closure in HotOp::DoubleInit and matches Ok(Err(Ok(e))) against HotError::AlreadyInitialized.
    • Tracks unpaused_in_window across HotOp::Pause / HotOp::Unpause / HotOp::Advance to assert that unpausing after a pause cannot succeed twice within the same cooldown window.

Closes #1185


Payout Wallet (Base USDC / EVM): 0x3806cd592a508d1992Ed007C2F53de251C2E7452

@lienhoatienphung-svg
lienhoatienphung-svg force-pushed the feature/1185-mend-hot-fuzz-target branch from 6c07ded to 919f343 Compare October 16, 2026 07:26
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.

Mend hot fuzz target imports and return types

2 participants