Skip to content

Fix compile failure: four missing closing braces in investment_vault/src/lib.rs #310

Description

@abayomicornelius

Area

Investment Vault / Build

Complexity

Easy

File(s)

investment_vault/src/lib.rs:1125-1130 (get_withdrawal_window), :2089-2105 (check_deposit_lock); investment_vault/src/events.rs:505-507, :519-521

Problem

The crate currently does not compile. cargo check -p investment-vault fails with error: this file contains an unclosed delimiter --> investment_vault/src/lib.rs:2246:16, tracing back through get_withdrawal_window and check_deposit_lock — four functions are missing their closing } before the next doc-comment/section header. This is confirmed live on main: the most recent CI run (gh run list --repo Heliobond/contracts --branch main) shows the CI and Benchmarks workflows both failing with this exact error, and the docs job fails documenting investment-vault for the same reason.

Scope

In:

  • Add the four missing closing braces (verified by brace-depth analysis of the file).

Out:

  • Any behavioral changes to the functions themselves.

Acceptance Criteria

  • cargo check and cargo test succeed for the investment_vault crate
  • No function bodies are accidentally merged or nested as a side effect of the fix
  • Existing tests still pass unchanged
  • CI (which is currently red on main) goes green again

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcontractSmart contract logic and designgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions