File tree 1 file changed +8
-3
lines changed
wormhole-connect/src/utils
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -296,9 +296,13 @@ export const getExplorerUrl = (
296
296
297
297
switch ( pathType ) {
298
298
case 'wallet' :
299
- return `${ baseUrl } address/${ path } ` ;
299
+ return chain === 'Aptos'
300
+ ? `${ baseUrl } account/${ path } `
301
+ : `${ baseUrl } address/${ path } ` ;
300
302
case 'tx' :
301
- return `${ baseUrl } tx/${ path } ` ;
303
+ return chain === 'Aptos'
304
+ ? `${ baseUrl } txn/${ path } `
305
+ : `${ baseUrl } tx/${ path } ` ;
302
306
default :
303
307
switch ( chain ) {
304
308
case 'Sui' :
@@ -307,12 +311,13 @@ export const getExplorerUrl = (
307
311
return `${ baseUrl } ${
308
312
isHexString ( path ) ? 'fungible_asset' : 'coin'
309
313
} /${ path } `;
314
+ case 'Solana' :
315
+ return `${ baseUrl } address/${ path } ` ;
310
316
default :
311
317
return `${ baseUrl } token/${ path } ` ;
312
318
}
313
319
}
314
320
} ;
315
-
316
321
// Frankenstein tokens are wormhole-wrapped tokens that are not native to the chain
317
322
// and likely have no liquidity.
318
323
// An example of a Frankenstein token is wormhole-wrapped Arbitrum WETH on Solana.
You can’t perform that action at this time.
0 commit comments