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: remove rpc array from network set up #65

Merged
merged 1 commit into from
Sep 11, 2024
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
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"environment": "Environment",
"nativeToken": "Native token",
"addNetwork": "Add network",
"addNetworkFailed": "Failed to add network",
"networkAdded": "Network added",
"chainId": "Chain ID",
"CHAININFORMATION": {
Expand Down
1 change: 1 addition & 0 deletions public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"environment": "Entorno",
"nativeToken": "Token nativo",
"addNetwork": "Agregar red",
"addNetworkFailed": "Error al agregar red",
"networkAdded": "Red agregada",
"chainId": "ID de cadena",
"CHAININFORMATION": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddNetworkButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const AddNetworkButton = () => {
await addNetwork({
chainId: chain as string,
chainName: chainData?.metadata.name,
rpcUrls: chainData?.metadata.publicRpcs,
rpcUrls: chainData?.metadata.publicRpcs[0],
name: chainData?.baseToken.name,
symbol: chainData?.baseToken.symbol,
decimals: chainData?.baseToken.decimals,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/addNetwork.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface AddNetwork {
chainId: string;
chainName: string;
rpcUrls: string[];
rpcUrls: string;
name: string;
symbol: string;
decimals: number;
Expand Down
Loading