Skip to content

Commit 653e4f8

Browse files
Update JS bridge, fix wallet chain connection (#46)
1 parent 5c0cd50 commit 653e4f8

File tree

2 files changed

+129
-716
lines changed

2 files changed

+129
-716
lines changed

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ public async void OnConnect(Wallet _wallet)
112112
{
113113
try
114114
{
115-
address = await ThirdwebManager.Instance.SDK.wallet.Connect(new WalletConnection() { provider = GetWalletProvider(_wallet), chainId = (int)ThirdwebManager.Instance.chain, });
115+
address = await ThirdwebManager.Instance.SDK.wallet.Connect(
116+
new WalletConnection() { provider = GetWalletProvider(_wallet), chainId = int.Parse(ThirdwebManager.Instance.supportedChainData[ThirdwebManager.Instance.chain].chainId), }
117+
);
116118

117119
wallet = _wallet;
118120
OnConnected();

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

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

0 commit comments

Comments
 (0)