From d6d722c016ac19142c55c7f14b2baa36aed2d1cc Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Wed, 17 Dec 2025 16:57:16 +0300 Subject: [PATCH] fix: fix token program unit test in debug mode --- program_methods/guest/src/bin/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program_methods/guest/src/bin/token.rs b/program_methods/guest/src/bin/token.rs index 1de0921..3fdfc7a 100644 --- a/program_methods/guest/src/bin/token.rs +++ b/program_methods/guest/src/bin/token.rs @@ -1091,7 +1091,7 @@ mod tests { BalanceEnum::MintSuccess => 50_000, BalanceEnum::InitSupplyMint => 150_000, BalanceEnum::HoldingBalanceMint => 51_000, - BalanceEnum::MintOverflow => 2u128.pow(128) - 40_000, + BalanceEnum::MintOverflow => u128::MAX - 40_000, } }