Skip to content

Commit 9351236

Browse files
committed
chore: fix typo
1 parent 245cde7 commit 9351236

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

sample/Assets/Scenes/Passport/ZkEvm/ZkEvmSendTransaction.unity

+7-7
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ MonoBehaviour:
12881288
m_TargetGraphic: {fileID: 1741513414}
12891289
m_HandleRect: {fileID: 1741513413}
12901290
m_Direction: 2
1291-
m_Value: 1
1291+
m_Value: 0
12921292
m_Size: 1
12931293
m_NumberOfSteps: 0
12941294
m_OnValueChanged:
@@ -1368,7 +1368,7 @@ RectTransform:
13681368
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
13691369
m_AnchorMin: {x: 0, y: 0}
13701370
m_AnchorMax: {x: 0, y: 0}
1371-
m_AnchoredPosition: {x: 432.63553, y: 0}
1371+
m_AnchoredPosition: {x: 427.93484, y: 0}
13721372
m_SizeDelta: {x: 0, y: 60}
13731373
m_Pivot: {x: 0.5, y: 0.5}
13741374
--- !u!114 &885137217
@@ -2046,7 +2046,7 @@ MonoBehaviour:
20462046
m_EditorClassIdentifier:
20472047
Output: {fileID: 1253661940}
20482048
ConfirmToggle: {fileID: 1782090444}
2049-
GetTrasactionReceiptToggle: {fileID: 1873101809}
2049+
GetTransactionReceiptToggle: {fileID: 1873101809}
20502050
ToInputField: {fileID: 649013321}
20512051
ValueInputField: {fileID: 1901422923}
20522052
DataInputField: {fileID: 1391622483}
@@ -3406,8 +3406,8 @@ RectTransform:
34063406
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
34073407
m_AnchorMin: {x: 0, y: 0}
34083408
m_AnchorMax: {x: 0, y: 0}
3409-
m_AnchoredPosition: {x: 885.5994, y: 0}
3410-
m_SizeDelta: {x: 1771.1991, y: 0}
3409+
m_AnchoredPosition: {x: 1153.199, y: 0}
3410+
m_SizeDelta: {x: 2306.398, y: 0}
34113411
m_Pivot: {x: 0.5, y: 0.5}
34123412
--- !u!114 &1833965463
34133413
MonoBehaviour:
@@ -4341,8 +4341,8 @@ RectTransform:
43414341
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
43424342
m_AnchorMin: {x: 0, y: 0}
43434343
m_AnchorMax: {x: 0, y: 0}
4344-
m_AnchoredPosition: {x: 885.59955, y: 0}
4345-
m_SizeDelta: {x: 1771.1991, y: 0}
4344+
m_AnchoredPosition: {x: 1153.199, y: 0}
4345+
m_SizeDelta: {x: 2306.398, y: 0}
43464346
m_Pivot: {x: 0.5, y: 0.5}
43474347
--- !u!114 &2131064088
43484348
MonoBehaviour:

sample/Assets/Scripts/Passport/ZkEvm/ZkEvmSendTransactionScript.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
using Immutable.Passport;
77
using Immutable.Passport.Model;
88
using Cysharp.Threading.Tasks;
9+
using UnityEngine.Serialization;
910

1011
public class ZkEvmSendTransactionScript : MonoBehaviour
1112
{
1213
#pragma warning disable CS8618
1314
[SerializeField] private Text Output;
1415

1516
[SerializeField] private Toggle ConfirmToggle;
16-
[SerializeField] private Toggle GetTrasactionReceiptToggle;
17+
[SerializeField] private Toggle GetTransactionReceiptToggle;
1718
[SerializeField] private InputField ToInputField;
1819
[SerializeField] private InputField ValueInputField;
1920
[SerializeField] private InputField DataInputField;
@@ -31,7 +32,7 @@ void Start()
3132
// Show get transaction receipt option if send transaction with confirmation toggle is off
3233
ConfirmToggle.onValueChanged.AddListener(delegate
3334
{
34-
GetTrasactionReceiptToggle.gameObject.SetActive(!ConfirmToggle.isOn);
35+
GetTransactionReceiptToggle.gameObject.SetActive(!ConfirmToggle.isOn);
3536
});
3637
}
3738
else
@@ -73,7 +74,7 @@ public async void SendTransaction()
7374
string transactionHash = await Passport.ZkEvmSendTransaction(request);
7475

7576
// Check if receipt is requested
76-
if (GetTrasactionReceiptToggle.isOn)
77+
if (GetTransactionReceiptToggle.isOn)
7778
{
7879
// Poll for the receipt and display transaction status
7980
string? status = await PollStatus(transactionHash);

0 commit comments

Comments
 (0)