Skip to content

Commit

Permalink
Update consts.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-1979 committed Jun 22, 2024
1 parent 5d424d7 commit 2fe69ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/dapp/src/util/consts.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const SNAP_VERSION = '>=0.1.14';
const LOCAL_SNAP_ID = 'local:http://localhost:8080';
// const NPM_SNAP_ID = 'npm:@polkagate/snap';

export const DEFAULT_SNAP_ORIGIN = LOCAL_SNAP_ID;
const NPM_SNAP_ID = 'npm:@polkagate/snap';

export const DEFAULT_SNAP_ORIGIN = process.env.POLKAGATE_NODE_ENV === 'development' ? LOCAL_SNAP_ID : NPM_SNAP_ID;
export const SUPPORTED_SNAPS = {
[DEFAULT_SNAP_ORIGIN]: { version: SNAP_VERSION },
};
Expand Down

0 comments on commit 2fe69ba

Please sign in to comment.