From adc944ac67c1902347b1729c6dc75221d2b45ecd Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Wed, 22 May 2024 13:41:32 +1200 Subject: [PATCH] docs: update transaction receipt response docs, remove unnecessary code in sample app --- sample/Assets/Scripts/AuthenticatedScript.cs | 1 - .../Private/Model/Response/TransactionReceiptResponse.cs | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sample/Assets/Scripts/AuthenticatedScript.cs b/sample/Assets/Scripts/AuthenticatedScript.cs index 60d488f4..e887d1dc 100644 --- a/sample/Assets/Scripts/AuthenticatedScript.cs +++ b/sample/Assets/Scripts/AuthenticatedScript.cs @@ -414,7 +414,6 @@ public async void GetZkTransactionReceiptStatus() TransactionReceiptResponse response = await passport.ZkEvmGetTransactionReceipt(ZkGetTransactionReceiptHash.text); string status = "Transaction receipt status: "; - ShowOutput($"Transaction receipt status: {(response.status == "0x1" ? "Success" : "Failed")}"); switch (response.status) { case "0x1": diff --git a/src/Packages/Passport/Runtime/Scripts/Private/Model/Response/TransactionReceiptResponse.cs b/src/Packages/Passport/Runtime/Scripts/Private/Model/Response/TransactionReceiptResponse.cs index 7a73733c..289bfcf5 100644 --- a/src/Packages/Passport/Runtime/Scripts/Private/Model/Response/TransactionReceiptResponse.cs +++ b/src/Packages/Passport/Runtime/Scripts/Private/Model/Response/TransactionReceiptResponse.cs @@ -24,15 +24,11 @@ public class TransactionReceiptResponse /// Possible reponses: /// /// - /// Success: 0x0 + /// Success: 0x1 /// /// /// Failure: 0x0 /// - /// - /// Null: Transaction is still processing - /// - /// /// public string status;