Skip to content

Commit

Permalink
Change ErrorResultXDR to error_result_xdr in `AsyncTransactionSub…
Browse files Browse the repository at this point in the history
…missionResponse` (#5445)

* convert json to snake-case

* change naming to snake-case - 2
  • Loading branch information
aditya1702 authored Aug 28, 2024
1 parent 95c43d1 commit 676ad39
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion protocols/horizon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ type AsyncTransactionSubmissionResponse struct {
// ErrorResultXDR is present only if Status is equal to proto.TXStatusError.
// ErrorResultXDR is a TransactionResult xdr string which contains details on why
// the transaction could not be accepted by stellar-core.
ErrorResultXDR string `json:"errorResultXdr,omitempty"`
ErrorResultXDR string `json:"error_result_xdr,omitempty"`
// TxStatus represents the status of the transaction submission returned by stellar-core.
// It can be one of: proto.TXStatusPending, proto.TXStatusDuplicate,
// proto.TXStatusTryAgainLater, or proto.TXStatusError.
Expand Down
6 changes: 3 additions & 3 deletions services/horizon/internal/httpx/static/txsub_async_oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ paths:
ErrorStatusExample:
summary: ERROR Status from core
value:
errorResultXdr: "AAAAAAAAAGT////7AAAAAA=="
error_result_xdr: "AAAAAAAAAGT////7AAAAAA=="
tx_status: "ERROR"
hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165"
'405':
Expand All @@ -78,7 +78,7 @@ paths:
schema:
$ref: '#/components/schemas/AsyncTransactionSubmissionResponse'
example:
errorResultXdr: ""
error_result_xdr: ""
tx_status: "DUPLICATE"
hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165"
'500':
Expand Down Expand Up @@ -136,7 +136,7 @@ components:
AsyncTransactionSubmissionResponse:
type: object
properties:
errorResultXdr:
error_result_xdr:
type: string
nullable: true
description: TransactionResult XDR string which is present only if the submission status from core is an ERROR.
Expand Down

0 comments on commit 676ad39

Please sign in to comment.