From 0deb190c4ce6048e34c61b31e6c8e527f2787628 Mon Sep 17 00:00:00 2001 From: jonesho <81145364+jonesho@users.noreply.github.com> Date: Mon, 19 Dec 2022 17:19:58 +0800 Subject: [PATCH] feat: update the min snap version to v1.0.0 (#44) --- packages/wallet-ui/.env.production | 2 +- packages/wallet-ui/.env.sample | 2 +- packages/wallet-ui/src/services/useStarkNetSnap.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/wallet-ui/.env.production b/packages/wallet-ui/.env.production index e122eaec..fe9562f9 100644 --- a/packages/wallet-ui/.env.production +++ b/packages/wallet-ui/.env.production @@ -1,2 +1,2 @@ REACT_APP_SNAP_ID=npm:@consensys/starknet-snap -REACT_APP_MIN_SNAP_VERSION=0.11.0 \ No newline at end of file +REACT_APP_MIN_SNAP_VERSION=1.0.0 \ No newline at end of file diff --git a/packages/wallet-ui/.env.sample b/packages/wallet-ui/.env.sample index e7b0328a..8afeebcc 100644 --- a/packages/wallet-ui/.env.sample +++ b/packages/wallet-ui/.env.sample @@ -1,3 +1,3 @@ REACT_APP_SNAP_ID=local:http://localhost:8081/ REACT_APP_SNAP_VERSION=* -REACT_APP_MIN_SNAP_VERSION=0.2.0 \ No newline at end of file +REACT_APP_MIN_SNAP_VERSION=1.0.0 \ No newline at end of file diff --git a/packages/wallet-ui/src/services/useStarkNetSnap.ts b/packages/wallet-ui/src/services/useStarkNetSnap.ts index 414a0d6a..b4eceb69 100644 --- a/packages/wallet-ui/src/services/useStarkNetSnap.ts +++ b/packages/wallet-ui/src/services/useStarkNetSnap.ts @@ -30,7 +30,7 @@ export const useStarkNetSnap = () => { const { ethereum } = window as any; const snapId = process.env.REACT_APP_SNAP_ID ? process.env.REACT_APP_SNAP_ID : 'local:http://localhost:8081/'; const snapVersion = process.env.REACT_APP_SNAP_VERSION ? process.env.REACT_APP_SNAP_VERSION : '*'; - const minSnapVersion = process.env.REACT_APP_MIN_SNAP_VERSION ? process.env.REACT_APP_MIN_SNAP_VERSION : '0.11.0'; + const minSnapVersion = process.env.REACT_APP_MIN_SNAP_VERSION ? process.env.REACT_APP_MIN_SNAP_VERSION : '1.0.0'; const connectToSnap = () => { dispatch(enableLoadingWithMessage('Connecting...'));