on master help sign in
misc notes, add .env to gitignore
commit94a48171985a16048a43b308d666d825ee706ad2 author~sarlev-sarsen <tlatfcp@protonmail.com> dateWed 26 Nov 2025, 10:31 (1 year ago) parentc6c4032
5 files changed+22−12
.gitignore+1 DEVELOPMENT.md+2−1 src/lib/flags.js+1 src/lib/network.js+9−8 src/views/Login/LoginSelector.tsx+9−3
.gitignore+1
@@ -11,6 +11,7 @@
1111
1212# misc
1313.DS_Store
14+.env
1415.env.local
1516.env.development.local
1617.env.test.local
DEVELOPMENT.md+2−1
@@ -34,7 +34,6 @@ it's a good place to get started. On the testnet, it's the address:
3434
3535You can authenticate as it using the following mnemonic:
3636
37−TODO: THIS SEED FAILS ON RECOVERY KEY SIGN IN with error: `"code":7979,"data":{}}`
3837```
3938benefit crew supreme gesture quantum web media hazard theory mercy wing kitten
4039```
@@ -209,6 +208,8 @@ Start a local fake ship from the master branch in the [urbit repo](https://githu
209208> :roller|setkey '58d62eb79797502bc0f66cd3e7a49d00287bff53a2734b799ef09cb746340ed0'
210209> :roller|quota 9.999
211210> |eyre/cors/approve 'https://127.0.0.1:3000'
211+:: If you run into issues, also add 'https://localhost:3000' the the eyre CORS approvals
212+::
212213:: Once L2 txs have been sent via Bridge, this will manually commit and batch them, avoiding waiting for the timer
213214::
214215> :roller|commit
src/lib/flags.js+1
@@ -2,6 +2,7 @@ import { version } from '../../package.json';
22
33// are we running bridge in a development build
44export const isDevelopment = import.meta.env.DEV === true;
5+// TODO update to Sepolia
56export const isGoerli = import.meta.env.VITE_GOERLI === 'true';
67export const isMainnet = import.meta.env.VITE_MAINNET === 'true';
78export const versionLabel =
src/lib/network.js+9−8
@@ -1,3 +1,4 @@
1+// TODO update to Sepolia from Goerli
12import { isDevelopment, isGoerli, isMainnet } from './flags';
23import {
34 ETHEREUM_GOERLI_CHAIN_ID,
@@ -16,12 +17,12 @@ const renderNetworkType = network =>
1617 network === NETWORK_TYPES.OFFLINE
1718 ? 'Offline'
1819 : network === NETWORK_TYPES.GOERLI
19− ? 'Goerli'
20− : network === NETWORK_TYPES.MAINNET
21− ? 'Main Network'
22− : network === NETWORK_TYPES.LOCAL
23− ? 'Local Node'
24− : 'Offline';
20+ ? 'Goerli'
21+ : network === NETWORK_TYPES.MAINNET
22+ ? 'Main Network'
23+ : network === NETWORK_TYPES.LOCAL
24+ ? 'Local Node'
25+ : 'Offline';
2526
2627const chainIdToNetworkType = chainId => {
2728 switch (chainId) {
@@ -38,8 +39,8 @@ const expectedChainId = () => {
3839 return isGoerli
3940 ? ETHEREUM_GOERLI_CHAIN_ID
4041 : isDevelopment && !isMainnet
41− ? ETHEREUM_LOCAL_CHAIN_ID
42− : ETHEREUM_MAINNET_CHAIN_ID;
42+ ? ETHEREUM_LOCAL_CHAIN_ID
43+ : ETHEREUM_MAINNET_CHAIN_ID;
4344};
4445
4546export {
src/views/Login/LoginSelector.tsx+9−3
@@ -105,9 +105,15 @@ export default function LoginSelector({
105105 if (expectedChainId() === ETHEREUM_LOCAL_CHAIN_ID) {
106106 await window.ethereum.request({
107107 method: "wallet_addEthereumChain",
108− params: [{chainId: ETHEREUM_LOCAL_CHAIN_ID,
109− chainName: "Ganache",
110− rpcUrls: ["http://127.0.0.1:8545"]
108+ params: [{
109+ chainId: ETHEREUM_LOCAL_CHAIN_ID,
110+ chainName: "Ganache",
111+ rpcUrls: ["http://127.0.0.1:8545"],
112+ nativeCurrency: {
113+ name: "Ether",
114+ symbol: "ETH",
115+ decimals: 18
116+ }
111117 }]
112118 });
113119 }