Skip to content

Update bridge + fix wallet connect by using V1 again #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions Assets/Thirdweb/Core/Scripts/Wallet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using Nethereum.Siwe.Core;
using System.Collections.Generic;
using Nethereum.Web3.Accounts;
using UnityEngine.Networking;
using Nethereum.Hex.HexConvertors.Extensions;
using WalletConnectSharp.Core.Models.Ethereum;

//using WalletConnectSharp.NEthereum;
Expand All @@ -22,8 +20,7 @@ namespace Thirdweb
/// </summary>
public class Wallet : Routable
{
public Wallet()
: base($"sdk{subSeparator}wallet") { }
public Wallet() : base($"sdk{subSeparator}wallet") { }

/// <summary>
/// Connect a user's wallet via a given wallet provider
Expand Down Expand Up @@ -507,7 +504,7 @@ public static WalletProvider CoinbaseWallet
}
public static WalletProvider WalletConnect
{
get { return new WalletProvider("walletConnect"); }
get { return new WalletProvider("walletConnectV1"); }
}
public static WalletProvider Injected
{
Expand All @@ -519,7 +516,7 @@ public static WalletProvider MagicAuth
}
public static WalletProvider DeviceWallet
{
get { return new WalletProvider("deviceWallet"); }
get { return new WalletProvider("localWallet"); }
}

public override string ToString()
Expand Down
232 changes: 149 additions & 83 deletions Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js

Large diffs are not rendered by default.