diff --git a/protocols/horizon/main.go b/protocols/horizon/main.go index dd9cc7814f..df4aee78cf 100644 --- a/protocols/horizon/main.go +++ b/protocols/horizon/main.go @@ -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. diff --git a/services/horizon/internal/httpx/static/txsub_async_oapi.yaml b/services/horizon/internal/httpx/static/txsub_async_oapi.yaml index f889cf4ec8..0e9a23e676 100644 --- a/services/horizon/internal/httpx/static/txsub_async_oapi.yaml +++ b/services/horizon/internal/httpx/static/txsub_async_oapi.yaml @@ -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': @@ -78,7 +78,7 @@ paths: schema: $ref: '#/components/schemas/AsyncTransactionSubmissionResponse' example: - errorResultXdr: "" + error_result_xdr: "" tx_status: "DUPLICATE" hash: "6cbb7f714bd08cea7c30cab7818a35c510cbbfc0a6aa06172a1e94146ecf0165" '500': @@ -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.