From 5526cd43d82426d4d9fb0c7262cba13a969a90ab Mon Sep 17 00:00:00 2001 From: Idris Bowman Date: Sat, 18 Nov 2023 15:33:41 -0500 Subject: [PATCH] test --- README.md | 5 +++-- packages/site/src/config/snap.ts | 1 - packages/site/src/pages/index.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 152045f..36c831f 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,9 @@ To interact with the Snaps, you must install [MetaMask Flask](https://metamask.i The snap requires a connection to ERC4337 Bundler. We will use Transeptor Bundler running alongside a geth client to set up the local ERC-4337 environment. Follow the steps below to set up the local environment: 1. Create a `.env` file and copy values in `.env.sample` to a the `.env` file. -2. `git submodule update --init` -3. Run `make bundler` to start the bundler. +2. Add `GATSBY_SNAP_ORIGIN=local:http://localhost:8080` to the `./packages/site/.env.development` file. +3. `git submodule update --init` +4. Run `make bundler` to start the bundler. The Bundler will start running on [http://localhost:3000/rpc](http://localhost:3000/rpc). You will need to have [Metamask Flask](https://metamask.io/flask/) installed and listening to diff --git a/packages/site/src/config/snap.ts b/packages/site/src/config/snap.ts index 9943b6b..3fa2764 100644 --- a/packages/site/src/config/snap.ts +++ b/packages/site/src/config/snap.ts @@ -2,7 +2,6 @@ * The snap origin to use. * Will default to the local hosted snap if no value is provided in environment. */ -console.log('defaultSnapOrigin', process.env.GATSBY_SNAP_ORIGIN) export const defaultSnapOrigin = process.env.GATSBY_SNAP_ORIGIN ?? `local:http://localhost:8080`; diff --git a/packages/site/src/pages/index.tsx b/packages/site/src/pages/index.tsx index 737ecf1..0abc3e8 100644 --- a/packages/site/src/pages/index.tsx +++ b/packages/site/src/pages/index.tsx @@ -397,7 +397,7 @@ const Index = () => {