Skip to content

Commit

Permalink
mention network name in error message for write
Browse files Browse the repository at this point in the history
  • Loading branch information
technophile-04 committed Dec 12, 2024
1 parent b39b93f commit 4cff224
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const useScaffoldWriteContract = <TContractName extends ContractName>({
}

if (accountChain?.id !== selectedNetwork.id) {
notification.error("Your wallet is connected to the wrong network");
notification.error(`Wallet is connected to the wrong network. Please switch to ${selectedNetwork.name}`);
return;
}

Expand Down Expand Up @@ -107,7 +107,7 @@ export const useScaffoldWriteContract = <TContractName extends ContractName>({
}

if (accountChain?.id !== selectedNetwork.id) {
notification.error("Your wallet is connected to the wrong network");
notification.error(`Wallet is connected to the wrong network. Please switch to ${selectedNetwork.name}`);
return;
}

Expand Down

0 comments on commit 4cff224

Please sign in to comment.