Skip to content

Commit 8d3dc67

Browse files
committed
wc throw when modal closes
1 parent f3a7fa2 commit 8d3dc67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Assets/Thirdweb/Runtime/Unity/Wallets/Core/WalletConnectWallet.cs

+4
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ protected static void CreateNewSession(string[] supportedChains)
279279

280280
// Open modal
281281
WalletConnectModal.Open(new WalletConnectModalOptions { ConnectOptions = connectOptions, IncludedWalletIds = _includedWalletIds });
282+
WalletConnectModal.ModalClosed += (sender, e) =>
283+
{
284+
_exception = new Exception("WalletConnect modal was closed.");
285+
};
282286
}
283287
catch (Exception e)
284288
{

0 commit comments

Comments
 (0)