Skip to content
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

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

sstanculeanu
Copy link
Contributor

More details needed on tx failure via /process-status endpoint

https://t.me/MultiversXDevelopers/124613

@sstanculeanu sstanculeanu self-assigned this Mar 13, 2024
@iulianpascalau iulianpascalau self-requested a review March 13, 2024 16:50
// ProcessStatusResponse represents a structure that holds the process status of a transaction
type ProcessStatusResponse struct {
Status string `json:"status"`
Data string `json:"data"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reason string `json:"reason"`

?

}

txLogsOnFirstLevel := []*transaction.ApiLogs{tx.Logs}
if checkIfFailed(txLogsOnFirstLevel) {
return transaction.TxStatusFail
failed, associatedData := checkIfFailed(txLogsOnFirstLevel)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename associatedData to reason ?

Copy link

@liviuf-ancas liviuf-ancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢

@sstanculeanu sstanculeanu merged commit b1862c3 into rc/v1.7.next1 Mar 14, 2024
4 checks passed
@sstanculeanu sstanculeanu deleted the error_details_on_process_status_endpoint branch March 14, 2024 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants