Closed tsadovska closed 11 months ago
This is also reproduced on Mainnet - https://mainnet--wormhole-connect.netlify.app/# Attachment:
Reproduced on https://mainnet--wormhole-connect.netlify.app/ [Mainnet] when sending 0.00000000000000001 WFTM from Base (Metamask) to Sui (Nightly). Error in Console:
Error: invalid decimal value (argument="value", value="1e-17", code=INVALID_ARGUMENT, version=bignumber/5.7.0)
at l.makeError (index.ts:269:28)
at l.throwError (index.ts:281:20)
at l.throwArgumentError (index.ts:285:21)
at h (fixednumber.ts:76:16)
at Module.c (index.ts:80:12)
at index.ts:165:21
at Object.onClick (Send.tsx:104:26)
Issue is reproducible on https://wormhole-connect.netlify.app/ [Testnet] when sending assets to :
Issue is reproducible on https://feat-cosmos-gateways--wormhole-connect.netlify.app/ [Testnet] when sending 9e-8 from Osmosis (Leap) to Goerli (Metamask).
Error: invalid decimal value (argument="value", value="9e-8", code=INVALID_ARGUMENT, version=bignumber/5.7.0)
at f.makeError (main.aac608af.js:37:4463233)
at f.throwError (main.aac608af.js:37:4463353)
at f.throwArgumentError (main.aac608af.js:37:4463408)
at h (main.aac608af.js:37:4345075)
at Module.d (main.aac608af.js:37:4596665)
at Lf.send (main.aac608af.js:110:153334)
at xb.send (main.aac608af.js:110:198303)
at Object.onClick (main.aac608af.js:137:24101)
Tested OK. User can no longer type in more than 7 digits after comma in the amount section. Tested from: https://wormhole-connect.netlify.app/# and https://wormhole-connect-mainnet.netlify.app/# Improvement regarding showing small amounts that is being sent, reported here: https://github.com/wormhole-foundation/wormhole-connect/issues/1023
Attachment:
Build:
https://feature-sei--wormhole-connect.netlify.app/ [Testnet]
Steps:
Actual result:
Error is displayed in Console:
Expected result:
User should be informed that the amount should be increased to proceed the transaction.
Device:
MacBook Pro, macOS Monterey 12.6.5, Chrome Version 113.0.5672.126 (Official Build) (x86_64)
Attachment: