From 25b4246c59c1bcb51e638ad7cee5bc27b188e848 Mon Sep 17 00:00:00 2001 From: "Felix C. Morency" <1102868+fmorency@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:15:29 -0500 Subject: [PATCH] fix: handle multi burn large number --- components/factory/forms/BurnForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/factory/forms/BurnForm.tsx b/components/factory/forms/BurnForm.tsx index 5b6b9376..c575e424 100644 --- a/components/factory/forms/BurnForm.tsx +++ b/components/factory/forms/BurnForm.tsx @@ -164,7 +164,7 @@ export default function BurnForm({ authority: admin ?? '', burnCoins: burnPairs.map(pair => ({ denom: denom.base, - amount: BigInt(parseFloat(pair.amount) * Math.pow(10, exponent)).toString(), + amount: parseNumberToBigInt(pair.amount, exponent).toString(), })), }); const encodedMessage = Any.fromPartial({