Skip to content

Commit

Permalink
wallet adapter enforce network
Browse files Browse the repository at this point in the history
  • Loading branch information
devsisingh committed Jan 20, 2024
1 parent 0d1ce8d commit 18d9fe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ const WalletSelectorAntDesign = dynamic(
const isSendableNetwork = (connected, network) => {
return (
connected &&
( network?.toLowerCase() === Network.DEVNET.toLowerCase() ||
network?.toLowerCase() === Network.TESTNET.toLowerCase() ||
network?.toLowerCase() === Network.MAINNET.toLowerCase())
( network?.toLowerCase() === mynetwork.toLowerCase())
);
};

Expand Down
4 changes: 1 addition & 3 deletions pages/mint.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ const WalletSelectorAntDesign = dynamic(
const isSendableNetwork = (connected, network) => {
return (
connected &&
( network?.toLowerCase() === Network.DEVNET.toLowerCase() ||
network?.toLowerCase() === Network.TESTNET.toLowerCase() ||
network?.toLowerCase() === Network.MAINNET.toLowerCase())
( network?.toLowerCase() === mynetwork.toLowerCase())
);
};

Expand Down

0 comments on commit 18d9fe7

Please sign in to comment.