Skip to content

Commit

Permalink
✏️ fix typos in the stellar sign
Browse files Browse the repository at this point in the history
  • Loading branch information
wjuniorbh92 committed Oct 23, 2023
1 parent 018403d commit a039a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions backend/internal/controller/http/v1/soroban.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ func (r *sorobanRoutes) signTransaction(c *gin.Context) {

request.WalletPk = sponsor.Key.PublicKey
}

res, err := r.m.SendMessage(entity.SignChannel, entity.SignTransactionRequest{
PublicKey: request.WalletPk,
Envelope: request.Envelope,
PublicKeys: []string{request.WalletPk},
Envelope: request.Envelope,
})
if err != nil {
errorResponse(c, http.StatusInternalServerError, "messaging problems", err)
Expand Down
6 changes: 3 additions & 3 deletions backend/internal/entity/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ type (
}

SignTransactionRequest struct {
Id int `json:"id"`
Envelope string `json:"envelope"`
PublicKey string `json:"publicKey"`
Id int `json:"id"`
Envelope string `json:"envelope"`
PublicKeys []string `json:"publicKeys"`
}

SorobanTransactionResponse struct {
Expand Down

0 comments on commit a039a23

Please sign in to comment.