From 1cc4abb0513f5286858f353cb40c2b1897f13300 Mon Sep 17 00:00:00 2001 From: Dingding-leo <193228693+Dingding-leo@users.noreply.github.com> Date: Mon, 27 Jul 2026 13:11:11 +0930 Subject: [PATCH] fix(investment_vault): renumber duplicate VaultError discriminants (fixes #311) Renumber FundingRoundActive to 42 and InvestmentCapExceeded to 43 so each variant in VaultError enum has a unique discriminant value. --- investment_vault/src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/investment_vault/src/types.rs b/investment_vault/src/types.rs index e09392d..4fa1758 100644 --- a/investment_vault/src/types.rs +++ b/investment_vault/src/types.rs @@ -90,9 +90,9 @@ pub enum VaultError { /// batch_deposit received an empty investor list (#178). EmptyBatchDeposit = 41, /// Share transfers are blocked because a funding round is active (#38). - FundingRoundActive = 41, + FundingRoundActive = 42, /// Funding would push cumulative investment in a project above its per-project cap (#32). - InvestmentCapExceeded = 41, + InvestmentCapExceeded = 43, } #[contracttype]