Skip to content

Commit 3758028

Browse files
committed
.NET 2.17.1 // NFT.QuantityOwned Fix
1 parent c9b81e3 commit 3758028

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
512 Bytes
Binary file not shown.

Assets/Thirdweb/Runtime/Unity/Wallets/Core/MetaMaskWallet.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public static async Task<MetaMaskWallet> Create(ThirdwebClient client, BigIntege
3939
{
4040
ThirdwebDebug.Log("MetaMask already initialized.");
4141
await mmWallet.SwitchNetwork(activeChainId);
42-
return mmWallet;
4342
}
4443
else
4544
{
@@ -52,7 +51,6 @@ public static async Task<MetaMaskWallet> Create(ThirdwebClient client, BigIntege
5251
{
5352
ThirdwebDebug.Log("MetaMask initialized successfully.");
5453
await mmWallet.SwitchNetwork(activeChainId);
55-
return mmWallet;
5654
}
5755
else
5856
{
@@ -64,6 +62,8 @@ public static async Task<MetaMaskWallet> Create(ThirdwebClient client, BigIntege
6462
throw new Exception("MetaMask is not available.");
6563
}
6664
}
65+
Utils.TrackConnection(mmWallet);
66+
return mmWallet;
6767
}
6868

6969
#region IThirdwebWallet

Assets/Thirdweb/Runtime/Unity/Wallets/Core/WalletConnectWallet.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ public async static Task<WalletConnectWallet> Create(ThirdwebClient client, BigI
9292
_walletConnectService = new WalletConnectServiceCore(WalletConnect.Instance.SignClient);
9393
}
9494

95-
return new WalletConnectWallet(client);
95+
var wcw = new WalletConnectWallet(client);
96+
Utils.TrackConnection(wcw);
97+
return wcw;
9698
}
9799

98100
public async Task SwitchNetwork(BigInteger chainId)

0 commit comments

Comments
 (0)