deploy localhost uses provided RPC URL or default

This commit is contained in:
stubbsta 2024-03-20 15:12:40 +02:00
parent 8790db0669
commit 23549614ca
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -35,14 +35,14 @@ const getNetworkConfig = (): NetworksUserConfig | undefined => {
url: "http://localhost:8545",
},
};
} else if (RPC_PROVIDER) {
} else {
const LOCALHOST_PROVIDER = RPC_PROVIDER || "http://localhost:8545";
return {
localhost_integration: {
url: RPC_PROVIDER,
url: LOCALHOST_PROVIDER,
},
};
}
return undefined;
};
// You need to export an object to set up your config