From a039a23a770814908865d5dfdcb8b39cf4c00245 Mon Sep 17 00:00:00 2001 From: wjuniorbh92 Date: Mon, 23 Oct 2023 15:42:23 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20fix=20typos=20in=20the=20s?= =?UTF-8?q?tellar=20sign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/controller/http/v1/soroban.go | 5 ++--- backend/internal/entity/message.go | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/internal/controller/http/v1/soroban.go b/backend/internal/controller/http/v1/soroban.go index aca524ad..d73723e0 100644 --- a/backend/internal/controller/http/v1/soroban.go +++ b/backend/internal/controller/http/v1/soroban.go @@ -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) diff --git a/backend/internal/entity/message.go b/backend/internal/entity/message.go index a4fb054b..eb3d44df 100644 --- a/backend/internal/entity/message.go +++ b/backend/internal/entity/message.go @@ -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 {