Skip to content

Commit

Permalink
feat(swap): include nonce and deadline in signature response
Browse files Browse the repository at this point in the history
  • Loading branch information
lmquang committed Feb 21, 2025
1 parent d27ccba commit 386ed1d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/handler/swap/swap.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ func (h *handler) GenerateSignature(c *gin.Context) {
return
}

c.JSON(http.StatusOK, view.CreateResponse[any](signature, nil, nil, "signature generated successfully"))
c.JSON(http.StatusOK, view.CreateResponse[any](map[string]interface{}{
"signature": signature,
"nonce": nonce,
"deadline": deadline,
}, nil, nil, "signature generated successfully"))
}

// TriggerSwap godoc
Expand Down

0 comments on commit 386ed1d

Please sign in to comment.