Skip to content

Commit

Permalink
💩 Fix amount could be string or number in stakeholder map
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Oct 10, 2022
1 parent aaf2d5e commit 9fe4302
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/api/likernft/purchase.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,11 @@ export async function handleNFTPurchaseTransaction({
value: {
fromAddress: LIKER_NFT_TARGET_ADDRESS,
toAddress: wallet,
amount: [{ denom: NFT_COSMOS_DENOM, amount: amount.toFixed(0) }],
// TODO: fix iscn-js to use string for amount input and output
amount: [{
denom: NFT_COSMOS_DENOM,
amount: new BigNumber(amount).toFixed(0, BigNumber.ROUND_DOWN),
}],
},
},
);
Expand Down

0 comments on commit 9fe4302

Please sign in to comment.