diff --git a/common/src/explorer.ts b/common/src/explorer.ts index 601a408a..5c6b0f04 100644 --- a/common/src/explorer.ts +++ b/common/src/explorer.ts @@ -136,7 +136,10 @@ export const explorerTx = (chainId: ChainId, tx: string) => ? `https://bigdipper.live/wormhole/transactions/${tx}` : ''; -export const explorerVaa = (key: string) => `https://wormholescan.io/#/tx/${key}`; +export const explorerVaa = (network: string, key: string) => + network === 'mainnet' + ? `https://wormholescan.io/#/tx/${key}` + : `https://wormholescan.io/#/tx/${key}?network=TESTNET`; export const getExplorerTxHash = (chain: ChainId, txHash: string) => { let explorerTxHash = ''; diff --git a/dashboard/src/components/Monitor.tsx b/dashboard/src/components/Monitor.tsx index 8962a3c2..4addaaf9 100644 --- a/dashboard/src/components/Monitor.tsx +++ b/dashboard/src/components/Monitor.tsx @@ -82,6 +82,7 @@ const missingBlockSx: SxProps = { }; function BlockDetail({ chain, message }: { chain: string; message: ObservedMessage }) { + const { currentNetwork } = useNetworkContext(); const vaaId = `${message.chain}/${message.emitter}/${message.seq}`; return ( @@ -110,7 +111,7 @@ function BlockDetail({ chain, message }: { chain: string; message: ObservedMessa gutterBottom >