Remove localhost network implementation and only use goerli and mumbai networks
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
This commit is contained in:
@@ -7,7 +7,6 @@ const getTokenAddress = (): string => {
|
||||
const possibleTokenAddresses: { [key: string]: string } = {
|
||||
Ethereum: "0x294003F602c321627152c6b7DED3EAb5bEa853Ee",
|
||||
Polygon: "0x294003F602c321627152c6b7DED3EAb5bEa853Ee",
|
||||
Localhost: "0x5FbDB2315678afecb367f032d93F642f64180aa3",
|
||||
};
|
||||
|
||||
return possibleTokenAddresses[etherStore.networkName];
|
||||
@@ -19,7 +18,6 @@ const getP2PixAddress = (): string => {
|
||||
const possibleP2PixAddresses: { [key: string]: string } = {
|
||||
Ethereum: "0x5f3EFA9A90532914545CEf527C530658af87e196",
|
||||
Polygon: "0x5f3EFA9A90532914545CEf527C530658af87e196",
|
||||
Localhost: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
|
||||
};
|
||||
|
||||
return possibleP2PixAddresses[etherStore.networkName];
|
||||
@@ -31,7 +29,6 @@ const getProviderUrl = (): string => {
|
||||
const possibleProvidersUrls: { [key: string]: string } = {
|
||||
Ethereum: import.meta.env.VITE_GOERLI_API_URL,
|
||||
Polygon: import.meta.env.VITE_MUMBAI_API_URL,
|
||||
Localhost: import.meta.env.VITE_GOERLI_API_URL,
|
||||
};
|
||||
|
||||
return possibleProvidersUrls[etherStore.networkName];
|
||||
@@ -42,8 +39,6 @@ const possibleChains: { [key: string]: NetworkEnum } = {
|
||||
"5": NetworkEnum.ethereum,
|
||||
"0x13881": NetworkEnum.polygon,
|
||||
"80001": NetworkEnum.polygon,
|
||||
"0x7a69": NetworkEnum.localhost,
|
||||
"31337": NetworkEnum.localhost,
|
||||
};
|
||||
|
||||
const network2Chain: { [key: string]: string } = {
|
||||
|
||||
Reference in New Issue
Block a user