Skip to content

Commit 386ed1d

Browse files
committed
feat(swap): include nonce and deadline in signature response
1 parent d27ccba commit 386ed1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/handler/swap/swap.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ func (h *handler) GenerateSignature(c *gin.Context) {
107107
return
108108
}
109109

110-
c.JSON(http.StatusOK, view.CreateResponse[any](signature, nil, nil, "signature generated successfully"))
110+
c.JSON(http.StatusOK, view.CreateResponse[any](map[string]interface{}{
111+
"signature": signature,
112+
"nonce": nonce,
113+
"deadline": deadline,
114+
}, nil, nil, "signature generated successfully"))
111115
}
112116

113117
// TriggerSwap godoc

0 commit comments

Comments
 (0)