Skip to content

Commit 132fed1

Browse files
committed
Version bump
1 parent 1682897 commit 132fed1

9 files changed

Lines changed: 328 additions & 94 deletions

File tree

Packages/com.walletconnect.web3modal/Resources/Fonts & Materials/Inter/Inter-Medium SDF.asset

Lines changed: 90 additions & 32 deletions
Large diffs are not rendered by default.

Packages/com.walletconnect.web3modal/Resources/Fonts & Materials/Inter/Inter-Regular SDF.asset

Lines changed: 211 additions & 49 deletions
Large diffs are not rendered by default.

Packages/com.walletconnect.web3modal/Runtime/Presenters/NetworkSearchPresenter.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEngine;
55
using UnityEngine.UIElements;
66
using WalletConnect.UI;
7+
using WalletConnectSharp.Common.Model.Errors;
78
using WalletConnectUnity.Core;
89
using WalletConnectUnity.UI;
910

@@ -117,6 +118,14 @@ private async Task ChangeChainWithTimeout(Chain chain)
117118

118119
await changeChainTask;
119120
}
121+
catch (WalletConnectException e)
122+
{
123+
// If user declines network switch, MetaMask returns a long json error message.
124+
// The message is not user-friendly, so we show a default error message instead.
125+
var defaultErrorMessage = SdkErrors.MessageFromType(e.CodeType);
126+
Web3Modal.NotificationController.Notify(NotificationType.Error, defaultErrorMessage);
127+
Router.GoBack();
128+
}
120129
catch (Exception e)
121130
{
122131
Web3Modal.NotificationController.Notify(NotificationType.Error, e.Message);

Packages/com.walletconnect.web3modal/Runtime/Web3Modal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static async Task InitializeAsync(Web3ModalConfig config)
7575
throw new Exception("Already initialized"); // TODO: use custom ex type
7676

7777
SdkMetadata.Type = "w3m";
78-
SdkMetadata.Version = "unity-w3m-v0.4.0"; // TODO: update this from CI
78+
SdkMetadata.Version = "unity-w3m-v0.4.1"; // TODO: update this from CI
7979

8080
Config = config ?? throw new ArgumentNullException(nameof(config));
8181

Packages/com.walletconnect.web3modal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.walletconnect.web3modal",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"displayName": "Web3Modal",
55
"unity": "2022.3",
66
"author": "WalletConnect",
@@ -15,8 +15,8 @@
1515
],
1616
"changelogUrl": "https://github.com/WalletConnect/Web3ModalUnity/blob/main/Packages/com.walletconnect.web3modal/CHANGELOG.md",
1717
"dependencies": {
18-
"com.walletconnect.core": "3.1.8",
19-
"com.walletconnect.ui": "1.1.8",
18+
"com.walletconnect.core": "3.1.10",
19+
"com.walletconnect.ui": "1.1.10",
2020
"com.walletconnect.nethereum": "1.0.1",
2121
"com.nethereum.unity": "4.19.1",
2222
"com.unity.vectorgraphics": "2.0.0-preview.24"

Samples/Customization/package-lock.json

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

Samples/W3M Basic Sample/Packages/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
"com.unity.textmeshpro": "3.0.8",
1111
"com.unity.timeline": "1.7.6",
1212
"com.unity.ugui": "1.0.0",
13-
"com.walletconnect.core": "3.1.7",
1413
"com.walletconnect.nethereum": "1.0.1",
15-
"com.walletconnect.ui": "1.1.7",
14+
"com.walletconnect.ui": "1.1.10",
1615
"com.walletconnect.web3modal": "file:../../../Packages/com.walletconnect.web3modal",
1716
"io.sentry.unity": "2.0.7",
1817
"com.unity.modules.ai": "1.0.0",

Samples/W3M Basic Sample/Packages/packages-lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"url": "https://packages.unity.com"
291291
},
292292
"com.walletconnect.core": {
293-
"version": "3.1.8",
293+
"version": "3.1.10",
294294
"depth": 1,
295295
"source": "registry",
296296
"dependencies": {
@@ -309,11 +309,11 @@
309309
"url": "https://package.openupm.com"
310310
},
311311
"com.walletconnect.ui": {
312-
"version": "1.1.8",
313-
"depth": 1,
312+
"version": "1.1.10",
313+
"depth": 0,
314314
"source": "registry",
315315
"dependencies": {
316-
"com.walletconnect.core": "3.1.8",
316+
"com.walletconnect.core": "3.1.10",
317317
"com.unity.textmeshpro": "3.0.0",
318318
"com.unity.ugui": "1.0.0"
319319
},
@@ -324,8 +324,8 @@
324324
"depth": 0,
325325
"source": "local",
326326
"dependencies": {
327-
"com.walletconnect.core": "3.1.8",
328-
"com.walletconnect.ui": "1.1.8",
327+
"com.walletconnect.core": "3.1.10",
328+
"com.walletconnect.ui": "1.1.10",
329329
"com.walletconnect.nethereum": "1.0.1",
330330
"com.nethereum.unity": "4.19.1",
331331
"com.unity.vectorgraphics": "2.0.0-preview.24"

Samples/W3M Basic Sample/ProjectSettings/ProjectSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ PlayerSettings:
776776
platformArchitecture: {}
777777
scriptingBackend:
778778
Android: 1
779-
Standalone: 0
779+
Standalone: 1
780780
il2cppCompilerConfiguration: {}
781781
il2cppCodeGeneration: {}
782782
managedStrippingLevel:

0 commit comments

Comments
 (0)