From b97a14987ea495453b0a2f947f433796e8dc68d5 Mon Sep 17 00:00:00 2001 From: thiagodeev Date: Mon, 30 Sep 2024 09:31:31 -0300 Subject: [PATCH] Adjusts TransactionStatus --- rpc/transaction_test.go | 2 ++ rpc/types_transaction_receipt.go | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc/transaction_test.go b/rpc/transaction_test.go index a674738a..6fb914a2 100644 --- a/rpc/transaction_test.go +++ b/rpc/transaction_test.go @@ -179,6 +179,8 @@ func TestTransactionReceipt(t *testing.T) { // TestGetTransactionStatus tests starknet_getTransactionStatus func TestGetTransactionStatus(t *testing.T) { + //TODO: implement a test case to 'failure_reason' before merge + testConfig := beforeEach(t) type testSetType struct { diff --git a/rpc/types_transaction_receipt.go b/rpc/types_transaction_receipt.go index d9d04d4a..755734a9 100644 --- a/rpc/types_transaction_receipt.go +++ b/rpc/types_transaction_receipt.go @@ -176,8 +176,9 @@ const ( ) type TxnStatusResp struct { - ExecutionStatus TxnExecutionStatus `json:"execution_status,omitempty"` FinalityStatus TxnStatus `json:"finality_status"` + ExecutionStatus TxnExecutionStatus `json:"execution_status,omitempty"` + FailureReason string `json:"failure_reason,omitempty"` } type TransactionReceiptWithBlockInfo struct {