From 5d30de695fce050ceb7934747a7949b61274628d Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Thu, 25 Dec 2025 16:59:49 +0300 Subject: [PATCH] fix: use `u128::MAX` instead of overflowing `2.pow(128)` --- 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 aac0363..f561b82 100644 --- a/program_methods/guest/src/bin/token.rs +++ b/program_methods/guest/src/bin/token.rs @@ -1367,7 +1367,7 @@ mod tests { } fn mint_overflow() -> u128 { - 2_u128.pow(128) - 40_000 + u128::MAX - 40_000 } fn init_supply_mint() -> u128 {