fix(storage): suppress bootstrap fallback on reads - #671
Open
Hikmaholadele wants to merge 6 commits into
Open
Conversation
Remove bootstrap_fallback event emission from read_rule_or_default, making it a pure resolution function. Add explicit emission to the mutating entry points that call it (store_payment_reference, set_settlement_rule, and _set_settlement_rule) when the resolved rule equals BOOTSTRAP_DEFAULT_RULE. This fixes the issue where pure read paths (calculate_fee_split, get_settlement_rule, etc.) emitted bootstrap_fallback as a side effect, causing false "unconfigured deployment" signals for indexers and unnecessary event churn. Read-only callers (calculate_fee_split) no longer emit any events. Mutating callers continue to signal unconfigured deployments when appropriate. Closes Betta-Pay#485 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@Hikmaholadele 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! 🚀 |
Add missing SettlementContractClient and Env imports in timelock_tests.rs and fix the schedule() call in integration_tests.rs to pass Vec<Address> instead of a bare Address. Run cargo fmt --all for workspace formatting. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
…min_tests Fixes clippy error on Betta-Pay#671 branch. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Contributor
Author
|
Hi, this workflow is currently waiting for maintainer approval. Could you please approve it so the workflow can proceed? Thank you. |
Fix compilation errors from API changes merged from main: - Add missing deployer parameter to init() calls in settlement and governance tests - Fix _env/env variable naming mismatch in governance tests - Fix soroban_sdk::vec! macro syntax in governance tests - Add missing executor parameter to execute() calls in timelock tests - Import GovernanceContract/GovernanceContractClient from governance_contract - Add missing Symbol/Events/FromVal imports for test assertions - Fix governance FeeConfig type reference - Fix BOOTSTRAP_DEFAULT_RULE import in payments.rs - Fix Symbol::into() to use IntoVal in storage.rs - Remove unused imports and prefix unused variables with underscore - Apply cargo fmt formatting across workspace 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
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.
Closes #485
Summary
Prevent bootstrap_fallback from being emitted as a side effect of read-only rule resolution.
Changes
Closes #485