Skip to content

Commit 32e52ef

Browse files
committed
refactor: added zkevm and imx folders for sample app
1 parent f69e632 commit 32e52ef

15 files changed

+31
-2
lines changed

sample/Assets/Scenes/AuthenticatedScene.unity

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3530,7 +3530,7 @@ GameObject:
35303530
- component: {fileID: 1192763473}
35313531
- component: {fileID: 1192763474}
35323532
m_Layer: 0
3533-
m_Name: Script
3533+
m_Name: AuthenticatedScript
35343534
m_TagString: Untagged
35353535
m_Icon: {fileID: 0}
35363536
m_NavMeshLayer: 0

sample/Assets/Scripts/Helpers.meta

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

sample/Assets/Scripts/Imx.meta

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

sample/Assets/Scripts/UnauthenticatedScript.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using UnityEngine.UI;
55
using UnityEngine.SceneManagement;
66
using Immutable.Passport;
7-
using Immutable.Passport.Model;
87

98
public class UnauthenticatedScript : MonoBehaviour
109
{

sample/Assets/Scripts/ZkEvm.meta

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

sample/Assets/Scripts/ZkEvmGetBalanceScript.cs renamed to sample/Assets/Scripts/ZkEvm/ZkEvmGetBalanceScript.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ public async void GetBalance()
4444
// Convert the hexadecimal balance to a BigInteger for decimal representation
4545
var balanceDec = BigInteger.Parse(balanceHex.Replace("0x", ""), NumberStyles.HexNumber);
4646

47+
// Ensure the number is positive
48+
if (balanceDec < 0)
49+
{
50+
balanceDec = BigInteger.Parse("0" + balanceHex.Replace("0x", ""), NumberStyles.HexNumber);
51+
}
52+
4753
// Display both hexadecimal and decimal representations of the balance
4854
ShowOutput($"Balance:\nHex: {balanceHex}\nDec: {balanceDec}");
4955
}

0 commit comments

Comments
 (0)