Skip to content

Commit

Permalink
fix: remove rpc array from network set up (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtiti authored Sep 11, 2024
2 parents f992759 + c385354 commit 397f021
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
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

0 comments on commit 397f021

Please sign in to comment.