diff --git a/src/SourcifyMenu.tsx b/src/SourcifyMenu.tsx index 36f43a5..7c614f0 100644 --- a/src/SourcifyMenu.tsx +++ b/src/SourcifyMenu.tsx @@ -30,14 +30,6 @@ const SourcifyMenu: React.FC = () => { > Sourcify Servers - - setSourcifySource(SourcifySource.CUSTOM_SNAPSHOT_SERVER) - } - > - Local Snapshot - diff --git a/src/url.ts b/src/url.ts index a229fd1..4639738 100644 --- a/src/url.ts +++ b/src/url.ts @@ -23,16 +23,12 @@ export enum SourcifySource { // Centralized Sourcify servers CENTRAL_SERVER, - - // Snapshot server - CUSTOM_SNAPSHOT_SERVER, } const sourcifyIPNS = "k51qzi5uqu5dll0ocge71eudqnrgnogmbr37gsgl12uubsinphjoknl6bbi41p"; const defaultIpfsGatewayPrefix = `https://ipfs.io/ipns/${sourcifyIPNS}`; const sourcifyHttpRepoPrefix = `https://repo.sourcify.dev`; -const snapshotPrefix = "http://localhost:3006"; const resolveSourcifySource = (source: SourcifySource) => { if (source === SourcifySource.IPFS_IPNS) { @@ -41,7 +37,8 @@ const resolveSourcifySource = (source: SourcifySource) => { if (source === SourcifySource.CENTRAL_SERVER) { return sourcifyHttpRepoPrefix; } - return snapshotPrefix; + + throw new Error(`Unknown Sourcify intergration source code: ${source}`); }; export const sourcifyMetadata = (