Skip to content
Merged
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
22 changes: 12 additions & 10 deletions apps/hyperdrive-trading/src/network/wagmiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ if (VITE_WALLET_CONNECT_PROJECT_ID) {
recommendedWallets.push(walletConnectWallet);
}

// mainnet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add here that mainnet must be first so it becomes the default for unconnected users?

if (VITE_MAINNET_RPC_URL) {
chains.push(mainnet);
transports[mainnet.id] = http(VITE_MAINNET_RPC_URL);

// TODO: push this into the custom wallets for local and cloudchain once
// capsule support is verified
if (capsuleWallet && !customWallets.includes(capsuleWallet)) {
customWallets.push(capsuleWallet);
}
}

// Local docker anvil node
if (VITE_LOCALHOST_NODE_RPC_URL && VITE_LOCALHOST_NODE_RPC_URL) {
chains.push(foundry);
Expand Down Expand Up @@ -70,16 +82,6 @@ if (VITE_SEPOLIA_RPC_URL) {
}
}

if (VITE_MAINNET_RPC_URL) {
chains.push(mainnet);
transports[mainnet.id] = http(VITE_MAINNET_RPC_URL);

// TODO: push this into the custom wallets for local and cloudchain once
// capsule support is verified
if (capsuleWallet && !customWallets.includes(capsuleWallet)) {
customWallets.push(capsuleWallet);
}
}
// Gnosis
if (VITE_GNOSIS_NODE_RPC_URL) {
chains.push(gnosis);
Expand Down
Loading