Skip to content

Commit

Permalink
docs: update transaction receipt response docs, remove unnecessary co…
Browse files Browse the repository at this point in the history
…de in sample app
  • Loading branch information
nattb8 committed May 22, 2024
1 parent 92e40f1 commit adc944a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion sample/Assets/Scripts/AuthenticatedScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ public class TransactionReceiptResponse
/// Possible reponses:
/// <list type="bullet">
/// <item>
/// <description>Success: 0x0</description>
/// <description>Success: 0x1</description>
/// </item>
/// <item>
/// <description>Failure: 0x0</description>
/// </item>
/// <item>
/// <description>Null: Transaction is still processing</description>
/// </item>
/// </list>
/// </summary>
public string status;

Expand Down

0 comments on commit adc944a

Please sign in to comment.