torys877 / magento-crypto-payment

Extension allows to receive crypto payments in USDT/USDC and native crypto currencies (Ether, Matic etc) with Metamask wallet
MIT License
1 stars 3 forks source link

[number-to-bn] while converting number "2.499" to BN.js instance, error: invalid number value. Value must be an integer, #3

Open rydemods opened 1 day ago

rydemods commented 1 day ago

Error: [number-to-bn] while converting number "2.499" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported. Given value: "2.499" at Object.d [as toBN] (utils.js:59:15)

should be able to handle converstion of currency rate correctly

rydemods commented 19 hours ago

here is fix for this issue : #4