We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63804b1 commit def66b2Copy full SHA for def66b2
1 file changed
Samples/AppKit Sample/Assets/Scripts/Dapp.cs
@@ -263,6 +263,12 @@ public async void OnSignTypedDataV4Button()
263
264
public async void OnReadContractClicked()
265
{
266
+ if (Web3Modal.NetworkController.ActiveChain.ChainId != "1")
267
+ {
268
+ Notification.ShowMessage("Please switch to Ethereum mainnet.");
269
+ return;
270
+ }
271
+
272
const string contractAddress = "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb"; // on Ethereum mainnet
273
const string yugaLabsAddress = "0xA858DDc0445d8131daC4d1DE01f834ffcbA52Ef1";
274
const string abi = CryptoPunksAbi;
0 commit comments