Skip to content

Commit

Permalink
Merge pull request #17 from DLC-link/feat/modified-login
Browse files Browse the repository at this point in the history
fix: modified different network login handling, fixed deployment url
  • Loading branch information
Polybius93 authored Nov 29, 2023
2 parents 0ee7c27 + fa249b2 commit b181ad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/hooks/use-ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export function useEthereum(): UseEthereumReturnType {

if (walletNetworkChainID !== network?.id) {
alert(`Please connect to ${network?.name}`);
return;
}
return { walletNetworkChainID, signer };
} catch (error) {
Expand Down Expand Up @@ -214,7 +215,7 @@ export function useEthereum(): UseEthereumReturnType {

const branchName = import.meta.env.VITE_ETHEREUM_DEPLOYMENT_BRANCH;
const contractVersion = import.meta.env.VITE_ETHEREUM_DEPLOYMENT_VERSION;
const deploymentPlanURL = `https://raw.githubusercontent.com/DLC-link/dlc-solidity/${branchName}/deploymentFiles/${network?.name}/v${contractVersion}/${contractName}.json`;
const deploymentPlanURL = `https://raw.githubusercontent.com/DLC-link/dlc-solidity/${branchName}/deploymentFiles/${network?.name.toLowerCase()}/v${contractVersion}/${contractName}.json`;

console.log(

Check warning on line 220 in src/app/hooks/use-ethereum.ts

View workflow job for this annotation

GitHub Actions / lint-eslint

Unexpected console statement
`Fetching deployment info for ${contractName} on ${network?.name} from dlc-solidity/${branchName}`,
Expand Down

0 comments on commit b181ad4

Please sign in to comment.