-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added error details on /process-status #433
added error details on /process-status #433
Conversation
data/transaction.go
Outdated
// ProcessStatusResponse represents a structure that holds the process status of a transaction | ||
type ProcessStatusResponse struct { | ||
Status string `json:"status"` | ||
Data string `json:"data"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason string `json:"reason"`
?
process/transactionProcessor.go
Outdated
} | ||
|
||
txLogsOnFirstLevel := []*transaction.ApiLogs{tx.Logs} | ||
if checkIfFailed(txLogsOnFirstLevel) { | ||
return transaction.TxStatusFail | ||
failed, associatedData := checkIfFailed(txLogsOnFirstLevel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename associatedData
to reason
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟢
More details needed on tx failure via
/process-status
endpointhttps://t.me/MultiversXDevelopers/124613