Skip to content

Commit

Permalink
aptos: fixes error throwing for getOriginalAsset (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
scnale authored Jan 3, 2025
1 parent 3cd1003 commit 88848ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/aptos/protocols/tokenBridge/src/tokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class AptosTokenBridge<N extends Network, C extends AptosChains>
)
).data as OriginInfo;

if (!originInfo) throw ErrNotWrapped;
if (!originInfo) throw ErrNotWrapped(token.toString());

// wrapped asset
const chain = toChain(parseInt(originInfo.token_chain.number));
Expand Down

0 comments on commit 88848ac

Please sign in to comment.