Skip to content

Commit

Permalink
fix(provider): switch localhost to ip
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Aug 1, 2024
1 parent 63e544d commit a11ab17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1681,15 +1681,15 @@ export class Provider extends ethers.providers.JsonRpcProvider {
): Provider {
switch (zksyncNetwork) {
case ZkSyncNetwork.Localhost:
return new Provider('http://localhost:3050');
return new Provider('http://127.0.0.1:3050');
case ZkSyncNetwork.Sepolia:
return new Provider('https://sepolia.era.zksync.dev');
case ZkSyncNetwork.Mainnet:
return new Provider('https://mainnet.era.zksync.io');
case ZkSyncNetwork.EraTestNode:
return new Provider('http://localhost:8011');
return new Provider('http://127.0.0.1:8011');
default:
return new Provider('http://localhost:3050');
return new Provider('http://127.0.0.1:3050');
}
}

Expand Down

0 comments on commit a11ab17

Please sign in to comment.