fix: use u128::MAX instead of overflowing 2.pow(128)

This commit is contained in:
Daniil Polyakov 2025-12-25 16:59:49 +03:00
parent fcdd6e96a5
commit 5d30de695f

View File

@ -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 {