From 28cf896a647cdea27c58e367428cb07705231e09 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 3 Sep 2020 10:38:49 -0700 Subject: [PATCH] explorer: make wrapped sol available through search (#12003) * make wrapped sol available through search * fix formatting * remove existing wrapped sol constant from utils/tx --- explorer/src/tokenRegistry.ts | 4 ++++ explorer/src/utils/tx.ts | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/explorer/src/tokenRegistry.ts b/explorer/src/tokenRegistry.ts index 98a630d145..72ecc18a97 100644 --- a/explorer/src/tokenRegistry.ts +++ b/explorer/src/tokenRegistry.ts @@ -63,4 +63,8 @@ const MAINNET_TOKENS: { [key: string]: TokenDetails } = { symbol: "USDC", name: "Wrapped USDC", }, + So11111111111111111111111111111111111111112: { + symbol: "SOL", + name: "Wrapped SOL", + }, }; diff --git a/explorer/src/utils/tx.ts b/explorer/src/utils/tx.ts index 835c7ea938..9b5efc6cd8 100644 --- a/explorer/src/utils/tx.ts +++ b/explorer/src/utils/tx.ts @@ -49,10 +49,6 @@ const SYSVAR_ID: { [key: string]: string } = { Sysvar1111111111111111111111111111111111111: "SYSVAR", }; -const WRAPPED_SOL: { [key: string]: string } = { - So11111111111111111111111111111111111111112: "Wrapped SOL", -}; - export const SYSVAR_IDS = { [SYSVAR_CLOCK_PUBKEY.toBase58()]: "SYSVAR_CLOCK", SysvarEpochSchedu1e111111111111111111111111: "SYSVAR_EPOCH_SCHEDULE", @@ -74,7 +70,6 @@ export function addressLabel( LOADER_IDS[address] || SYSVAR_IDS[address] || SYSVAR_ID[address] || - WRAPPED_SOL[address] || TokenRegistry.get(address, cluster)?.name ); }