Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gouthamp-stellar committed Nov 26, 2024
1 parent b876e3f commit 0c94a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/serve/httphandler/tss_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type BuildTransactionsRequest struct {
Transactions []Transaction `json:"transactions" validate:"required,gt=0"`
}

type BuildTransactionResponse struct {
type BuildTransactionsResponse struct {
TransactionXDRs []string `json:"transactionxdrs"`
}

Expand Down Expand Up @@ -73,7 +73,7 @@ func (t *TSSHandler) BuildTransactions(w http.ResponseWriter, r *http.Request) {
}
transactionXDRs = append(transactionXDRs, txXdrStr)
}
httpjson.Render(w, BuildTransactionResponse{
httpjson.Render(w, BuildTransactionsResponse{
TransactionXDRs: transactionXDRs,
}, httpjson.JSON)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/serve/httphandler/tss_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestBuildTransactions(t *testing.T) {

assert.Equal(t, http.StatusOK, resp.StatusCode)

var buildTxResp BuildTransactionResponse
var buildTxResp BuildTransactionsResponse
_ = json.Unmarshal(respBody, &buildTxResp)
expectedTxXDR, _ := tx.Base64()
assert.Equal(t, expectedTxXDR, buildTxResp.TransactionXDRs[0])
Expand Down

0 comments on commit 0c94a3f

Please sign in to comment.