fix: resolve compile errors from issues #477-#480#611
Merged
hman38705 merged 1 commit intosolutions-plug:mainfrom Apr 27, 2026
Merged
fix: resolve compile errors from issues #477-#480#611hman38705 merged 1 commit intosolutions-plug:mainfrom
hman38705 merged 1 commit intosolutions-plug:mainfrom
Conversation
…plug#480 - solutions-plug#477: DISPUTE_WINDOW_SECONDS and single get_dispute_window already present in resolution.rs (no change needed) - solutions-plug#478: ConfigKey::TimelockDuration, TIMELOCK_MIN_SECONDS, and TIMELOCK_MAX_SECONDS already defined in types.rs (no change needed) - solutions-plug#479: Fix PendingGuardianRemoval field name mismatch in governance.rs; struct defines target_guardian but code referenced .address in both the struct literal and the removal filter loop - solutions-plug#480: Fix emit_oracle_result_set call in oracles.rs missing oracle_id (u32) as the third argument; signature requires 5 args but only 4 were passed, causing a type mismatch compile error
|
@Realericky Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#477 — Fix duplicate
get_dispute_windowand dead constant usageFile:
modules/resolution.rsAlready resolved in the codebase:
DISPUTE_WINDOW_SECONDSis defined and a singleget_dispute_window()implementation exists. No code change required.#478 — Add missing timelock config key and bounds constants
File:
types.rs,modules/governance.rsAlready resolved:
ConfigKey::TimelockDuration,TIMELOCK_MIN_SECONDS, andTIMELOCK_MAX_SECONDSare all defined intypes.rsand imported correctly ingovernance.rs. No code change required.#479 — Fix
PendingGuardianRemovalfield name mismatchFile:
modules/governance.rsPendingGuardianRemovalintypes.rsdeclares the field astarget_guardian, butgovernance.rsreferenced it as.addressin two places:remove_guardianvote_on_guardian_removalBoth corrected to use
.target_guardian.#480 — Fix missing
oracle_idargument in oracle result eventFile:
modules/oracles.rsemit_oracle_result_setinevents.rshas the signature:The call site in
set_oracle_resultwas passing only 4 arguments (omittingoracle_id). Fixed by passing0u32as theoracle_id, consistent with the rest of the codebase and the existing event tests.Testing
Static analysis confirms all call sites and struct field references are now consistent with their definitions. Cargo is not available in this environment; CI will provide full build verification.
Closes #477
Closes #478
Closes #479
Closes #480