Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change testnet URL #4369

Merged
merged 4 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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