Skip to content

Commit

Permalink
Adjusts TransactionStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed Dec 4, 2024
1 parent 8deb612 commit b97a149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rpc/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion rpc/types_transaction_receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b97a149

Please sign in to comment.