Skip to content

Commit

Permalink
confirmed that the reert_error also covers rejected errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rianhughes committed Oct 8, 2024
1 parent 1f340d5 commit f6fe3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ func adaptTransactionStatus(txStatus *starknet.TransactionStatus) (*TransactionS
status.Execution = TxnFailure
case starknet.Rejected:
status.Finality = TxnStatusRejected
status.FailureReason = txStatus.RevertError // Todo: placeholder - does revertError also hold the error for Rejected Txns?
status.FailureReason = txStatus.RevertError
default: // Omit the field on error. It's optional in the spec.
}

Expand Down

0 comments on commit f6fe3b9

Please sign in to comment.