diff --git a/README.md b/README.md index 4295045..018e1aa 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,10 @@ Afterward, you can access user interfaces as follows: Note: This Metamask snap operates autonomously and does not rely on other extensions within the Polkadot ecosystem for its functionality. +## Polkagate Snap Security Audit Report + +https://sayfer.io/audits/metamask-snap-audit-report-for-polkagate-snap/ + --- For more detailed help, please refer to the [wiki](https://github.com/PolkaGate/snap/wiki). diff --git a/packages/dapp/src/util/consts.ts b/packages/dapp/src/util/consts.ts index 59a349b..4b1bd02 100644 --- a/packages/dapp/src/util/consts.ts +++ b/packages/dapp/src/util/consts.ts @@ -2,8 +2,9 @@ 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 = process.env.NODE_ENV === 'development' ? LOCAL_SNAP_ID : NPM_SNAP_ID; +export const DEFAULT_SNAP_ORIGIN = process.env.POLKAGATE_NODE_ENV === 'development' ? LOCAL_SNAP_ID : NPM_SNAP_ID; +console.log('process.env.POLKAGATE_NODE_ENV:',process.env.POLKAGATE_NODE_ENV) export const SUPPORTED_SNAPS = { [DEFAULT_SNAP_ORIGIN]: { version: SNAP_VERSION }, }; diff --git a/packages/snap/package.json b/packages/snap/package.json index 609cdf2..599b351 100644 --- a/packages/snap/package.json +++ b/packages/snap/package.json @@ -1,6 +1,6 @@ { "name": "@polkagate/snap", - "version": "0.2.0", + "version": "0.2.1", "description": "A MetaMask Snap to interact with Polkadot ecosystem, a platform for cross-chain communication and scalability. Use your MetaMask wallet to access Polkadot dApps and tokens. No extra extension needed.", "repository": { "type": "git", diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 2bd76ff..21db98b 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -1,5 +1,5 @@ { - "version": "0.2.0", + "version": "0.2.1", "description": "Explore Polkadot decentralized applications and manage your tokens using your MetaMask wallet. Start your journey at apps.polkagate.xyz.", "proposedName": "PolkaGate snap", "repository": { @@ -7,7 +7,7 @@ "url": "https://github.com/polkagate/snap.git" }, "source": { - "shasum": "knR1GRvbWzUyUXHJx2i6frH+QpKk0p5Dcc/Vv/JsQWk=", + "shasum": "O8bw3rvpictiFPPvlTBCuO4xVzK4athvfiLfiAt+nOE=", "location": { "npm": { "filePath": "dist/bundle.js",