Skip to content

Commit

Permalink
fix: Change testnet URL (snapshot-labs#4369)
Browse files Browse the repository at this point in the history
* fix: Change testnet URL

* format fix
  • Loading branch information
ChaituVR authored Nov 20, 2023
1 parent a350b1a commit d2387b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VITE_HUB_URL=https://testnet.snapshot.org
VITE_RELAYER_URL=https://testnet.snapshot.org
VITE_HUB_URL=https://testnet.hub.snapshot.org
VITE_RELAYER_URL=https://testnet.hub.snapshot.org
VITE_SCORES_URL=https://score.snapshot.org
VITE_ENVELOP_URL=https://core.envelop.fyi
VITE_SIDEKICK_URL=https://sh5.co
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ yarn run lint

Use `http://localhost:8080/#/fabien.eth` for testing your code.

By default your instance will connect to the hub at `https://testnet.snapshot.org`. To change that (or other values) you can create a `.env.local` and overwrite the values from `.env`.
By default your instance will connect to the hub at `https://testnet.hub.snapshot.org`. To change that (or other values) you can create a `.env.local` and overwrite the values from `.env`.

## Running service locally with Docker
1. Run `docker build -t snapshot .` to build the image
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/clientEIP712.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Client from '@snapshot-labs/snapshot.js/src/sign';

const hubUrl = import.meta.env.VITE_HUB_URL || 'https://testnet.snapshot.org';
const hubUrl =
import.meta.env.VITE_HUB_URL || 'https://testnet.hub.snapshot.org';
const relayerURL = import.meta.env.VITE_RELAYER_URL;
const client = new Client(hubUrl, { relayerURL });

Expand Down

0 comments on commit d2387b9

Please sign in to comment.