Skip to content

Commit 298380a

Browse files
authored
Merge pull request #193 from immutable/docs/tx-receipt-response
[DX-2834] docs: update transaction receipt response docs, remove unnecessary code in sample app
2 parents 92e40f1 + adc944a commit 298380a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

sample/Assets/Scripts/AuthenticatedScript.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ public async void GetZkTransactionReceiptStatus()
414414

415415
TransactionReceiptResponse response = await passport.ZkEvmGetTransactionReceipt(ZkGetTransactionReceiptHash.text);
416416
string status = "Transaction receipt status: ";
417-
ShowOutput($"Transaction receipt status: {(response.status == "0x1" ? "Success" : "Failed")}");
418417
switch (response.status)
419418
{
420419
case "0x1":

src/Packages/Passport/Runtime/Scripts/Private/Model/Response/TransactionReceiptResponse.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ public class TransactionReceiptResponse
2424
/// Possible reponses:
2525
/// <list type="bullet">
2626
/// <item>
27-
/// <description>Success: 0x0</description>
27+
/// <description>Success: 0x1</description>
2828
/// </item>
2929
/// <item>
3030
/// <description>Failure: 0x0</description>
3131
/// </item>
32-
/// <item>
33-
/// <description>Null: Transaction is still processing</description>
34-
/// </item>
35-
/// </list>
3632
/// </summary>
3733
public string status;
3834

0 commit comments

Comments
 (0)