Skip to content

Commit

Permalink
fix: explorer link
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Apr 9, 2024
1 parent d2c20cd commit 7f59aba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/screens/staking/lib/staking_sdk/utils/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ export const getExplorerLink = (address: string, network?: string) => {
case StakingNetworkId.Solana:
case StakingNetworkId.SolanaTestnet:
case StakingNetworkId.SolanaDevnet:
return `https://explorer.solana.com/address/${address}?cluster=devnet`;
return `https://explorer.solana.com/address/${address}?cluster=${
{
[StakingNetworkId.Solana]: "mainnet",
[StakingNetworkId.SolanaDevnet]: "devnet",
[StakingNetworkId.SolanaTestnet]: "testnet",
}[network]
}`;
default:
return null;
}
Expand Down

0 comments on commit 7f59aba

Please sign in to comment.