Skip to content

Commit 3d7886a

Browse files
committed
fix: env vals
1 parent 373ea42 commit 3d7886a

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

frontend/src/config/snap.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1+
export const defaultSnapOrigin = import.meta.env.VITE_SNAP_ORIGIN
2+
export const snapPackageVersion = import.meta.env.VITE_SNAP_VERSION;
3+
export const CUSTOM_CONTRACT = import.meta.env.VITE_SMART_CONTRACT;
14

2-
/**
3-
* The snap origin to use.
4-
* Will default to the local hosted snap if no value is provided in environment.
5-
*/
6-
export const defaultSnapOrigin = import.meta.env.VITE_SNAP_ORIGIN ?? 'npm:@bobanetwork/snap-account-abstraction-keyring-hc'
7-
8-
9-
/**
10-
* Version of snap installed so have to give release on each new version.
11-
* - can use to show the button to user to update snaps.
12-
*/
13-
export const snapPackageVersion = import.meta.env.VITE_SNAP_VERSION ?? "1.1.16";
14-
15-
16-
export const CUSTOM_CONTRACT = import.meta.env.VITE_SMART_CONTRACT;
5+
console.log(defaultSnapOrigin);
6+
console.log(snapPackageVersion);
7+
console.log(CUSTOM_CONTRACT);

0 commit comments

Comments
 (0)