Add missing require_current_state guards - #465
Closed
abayomicornelius wants to merge 1 commit into
Closed
Conversation
set_wormhole_core, fund_project_internal, receive_yield_internal, claim_insurance_internal, calculate_carbon_credits (investment_vault) and certify_project (project_registry) were missing the require_current_state guard that all their sibling state-mutating functions already enforce. Closes #460 Closes #461 Closes #462 Closes #463
Contributor
Author
|
Superseded by #466, raised from the account the issues were assigned to. Closing this one. |
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.
Adds the
require_current_stateguard to six functions that were missing it while every sibling state-mutating function in the same contract enforces it:investment_vault::set_wormhole_coreinvestment_vault::fund_project_internal(the vault's primary capital-deployment path, reached viafund_project,fund_project_with_approvals,batch_fund_projects)investment_vault::receive_yield_internalinvestment_vault::claim_insurance_internalinvestment_vault::calculate_carbon_creditsproject_registry::certify_projectFast, minimal fix — just adds the missing guard call at the top of each function to match the existing pattern used everywhere else in these contracts.
Closes #460
Closes #461
Closes #462
Closes #463