Skip to content

Commit 8417edf

Browse files
Update bridge + fix wallet connect by using V1 again (#62)
1 parent b48b600 commit 8417edf

File tree

2 files changed

+152
-89
lines changed

2 files changed

+152
-89
lines changed

Assets/Thirdweb/Core/Scripts/Wallet.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
using Nethereum.Siwe.Core;
1010
using System.Collections.Generic;
1111
using Nethereum.Web3.Accounts;
12-
using UnityEngine.Networking;
13-
using Nethereum.Hex.HexConvertors.Extensions;
1412
using WalletConnectSharp.Core.Models.Ethereum;
1513

1614
//using WalletConnectSharp.NEthereum;
@@ -22,8 +20,7 @@ namespace Thirdweb
2220
/// </summary>
2321
public class Wallet : Routable
2422
{
25-
public Wallet()
26-
: base($"sdk{subSeparator}wallet") { }
23+
public Wallet() : base($"sdk{subSeparator}wallet") { }
2724

2825
/// <summary>
2926
/// Connect a user's wallet via a given wallet provider
@@ -507,7 +504,7 @@ public static WalletProvider CoinbaseWallet
507504
}
508505
public static WalletProvider WalletConnect
509506
{
510-
get { return new WalletProvider("walletConnect"); }
507+
get { return new WalletProvider("walletConnectV1"); }
511508
}
512509
public static WalletProvider Injected
513510
{
@@ -519,7 +516,7 @@ public static WalletProvider MagicAuth
519516
}
520517
public static WalletProvider DeviceWallet
521518
{
522-
get { return new WalletProvider("deviceWallet"); }
519+
get { return new WalletProvider("localWallet"); }
523520
}
524521

525522
public override string ToString()

Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js

Lines changed: 149 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)