Open tsadovska opened 1 day ago
Issue is in the SDK. This is the actual error I'm getting:
Error: scaleAmount({"amount":"80","decimals":8}, 6) would result in altered amount. Use truncateAmount first if you intended to truncate it.
at Object.scale (http://localhost:5173/node_modules/.vite/deps/@wormhole-foundation_sdk-base.js?v=8ef798bb:3338:9)
at TokenTransfer.fromIdentifier (http://localhost:5173/@fs/Users/kevin/repos/wormhole-sdk-ts/connect/dist/esm/protocols/tokenBridge/tokenTransfer.js?t=1726857176087:76:37)
at async TokenTransfer.fromTransaction (http://localhost:5173/@fs/Users/kevin/repos/wormhole-sdk-ts/connect/dist/esm/protocols/tokenBridge/tokenTransfer.js?t=1726857176087:100:20)
at async TokenTransfer.from (http://localhost:5173/@fs/Users/kevin/repos/wormhole-sdk-ts/connect/dist/esm/protocols/tokenBridge/tokenTransfer.js?t=1726857176087:50:18)
at async TokenBridgeRoute.resume (http://localhost:5173/@fs/Users/kevin/repos/wormhole-sdk-ts/connect/dist/esm/routes/tokenBridge/manual.js?t=1726857176087:85:22)
This fixes the scaleAmount issue mentioned above: https://github.com/wormhole-foundation/wormhole-sdk-ts/pull/700
Describe the current behavior in detail
Checked on https://portalbridge.com/:
Steps:
Actual result: Transfer is not found. Loading does not complete. Expected result: Transaction is successfully resumed.
Notes/ Attachments
Link to Wormholescan.