Skip to content

Commit baad2e5

Browse files
authored
Nikola/reown update (#1270)
* Upgrading relevant packages * reruning setup.bat * Fixing ugly exceptions coming from new reown version. * Potential fix to sepolia issues * Re-ran setup.bat * More fixes * Modifying gitignore * Stabilized the app as much as posssible * More features for Metamask * Fixing weird issue with operation tracker * Trying another thing on iOS * Samples are working again! * Fixing chain id switch * Fixing comments from Rob * Adding meta file
1 parent 60f7440 commit baad2e5

File tree

120 files changed

+163
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+163
-327
lines changed

Packages/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ crashlytics-build.properties
8181
# Ignore the build artifacts from our libraries
8282
/io.chainsafe.web3-unity/Runtime/Libraries/*.dll
8383
/io.chainsafe.web3-unity/Runtime/Libraries/*.dll.meta
84+
8485
/io.chainsafe.web3-unity/Runtime/Libraries/*.pdb
8586
/io.chainsafe.web3-unity/Runtime/Libraries/*.pdb.meta
8687

8788
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.dll
8889
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.dll.meta
90+
8991
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.pdb
9092
/io.chainsafe.web3-unity.lootboxes/Chainlink/Runtime/Libraries/*.pdb.meta
9193

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

Packages/io.chainsafe.web3-unity/Editor/ABICSharpConverter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.IO;
44
using System.Linq;
55
using System.Text;
6-
using System.Text.Json;
76
using System.Text.RegularExpressions;
87
using ChainSafe.Gaming.RPC.Events;
98
using Nethereum.ABI;
@@ -124,9 +123,10 @@ private void ConvertAbiToCSharp()
124123
}
125124

126125
text = text.Replace("{CLASS_NAME}", className);
127-
var minifiedJson = JsonDocument.Parse(_abi).RootElement.GetRawText();
128-
var escapedJson = minifiedJson.Replace("\"", "\\\"");
129-
text = text.Replace("{CONTRACT_ABI}", escapedJson);
126+
string removeNewLines = _abi.Replace("\n", "");
127+
string removeWhiteSpaces = Regex.Replace(removeNewLines, @"\s", "");
128+
string improvedABI = removeWhiteSpaces.Replace("\"", "\\\"");
129+
text = text.Replace("{CONTRACT_ABI}", improvedABI);
130130
text = Regex.Replace(text, @"\s*\{CUSTOM_CLASSES\}", "\n\n" + ParseCustomClasses());
131131
text = Regex.Replace(text, @"\s*\{EVENT_CLASSES\}", "\n\n" + ParseEventClasses());
132132
text = Regex.Replace(text, @"\s*\{METHODS\}", "\n\n" + ParseMethods());

Packages/io.chainsafe.web3-unity/Runtime/Libraries/ADRaffy.ENSNormalize.dll.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Packages/io.chainsafe.web3-unity/Runtime/Libraries/BouncyCastle.Crypto.dll.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

Packages/io.chainsafe.web3-unity/Runtime/Libraries/ChainSafe.Gaming.Debugging.dll.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)