Skip to content

Commit 5f94057

Browse files
committed
fix urls
1 parent 62f2474 commit 5f94057

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

wormhole-connect/src/utils/index.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,13 @@ export const getExplorerUrl = (
296296

297297
switch (pathType) {
298298
case 'wallet':
299-
return `${baseUrl}address/${path}`;
299+
return chain === 'Aptos'
300+
? `${baseUrl}account/${path}`
301+
: `${baseUrl}address/${path}`;
300302
case 'tx':
301-
return `${baseUrl}tx/${path}`;
303+
return chain === 'Aptos'
304+
? `${baseUrl}txn/${path}`
305+
: `${baseUrl}tx/${path}`;
302306
default:
303307
switch (chain) {
304308
case 'Sui':
@@ -307,12 +311,13 @@ export const getExplorerUrl = (
307311
return `${baseUrl}${
308312
isHexString(path) ? 'fungible_asset' : 'coin'
309313
}/${path}`;
314+
case 'Solana':
315+
return `${baseUrl}address/${path}`;
310316
default:
311317
return `${baseUrl}token/${path}`;
312318
}
313319
}
314320
};
315-
316321
// Frankenstein tokens are wormhole-wrapped tokens that are not native to the chain
317322
// and likely have no liquidity.
318323
// An example of a Frankenstein token is wormhole-wrapped Arbitrum WETH on Solana.

0 commit comments

Comments
 (0)