Skip to content

Commit

Permalink
fix: handle multi burn large number
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Nov 26, 2024
1 parent b1b4794 commit 25b4246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/factory/forms/BurnForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 25b4246

Please sign in to comment.