Skip to content

Commit 450c470

Browse files
committed
fix:standardize lifi protocol
1 parent 295f195 commit 450c470

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

api/handlers/signing.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const (
2222
MayanProtocol ProtocolType = "mayan"
2323
RhinestoneProtocol ProtocolType = "rhinestone"
2424
LifiEscrowProtocol ProtocolType = "lifi-escrow"
25-
LifiProtocol ProtocolType = "lifi"
2625
LighterProtocol ProtocolType = "lighter"
2726
)
2827

api/handlers/unlock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (h *UnlockHandler) HandleUnlock(w http.ResponseWriter, r *http.Request) {
6262
sigChn := make(chan interface{}, 1)
6363
var m *message.Message
6464
switch b.Protocol {
65-
case LifiProtocol:
65+
case LifiEscrowProtocol:
6666
{
6767
m = evmMessage.NewLifiUnlockMessage(0, b.ChainId, &evmMessage.LifiUnlockData{
6868
Source: 0,

api/handlers/unlock_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (s *UnlockHandlerTestSuite) Test_HandleUnlock_InvalidRequest() {
3838
handler := handlers.NewUnlockHandler(msgChn, s.chains)
3939

4040
input := handlers.UnlockBody{
41-
Protocol: "lifi",
41+
Protocol: "lifi-escrow",
4242
OrderID: "id",
4343
Settler: "settler",
4444
}
@@ -95,7 +95,7 @@ func (s *UnlockHandlerTestSuite) Test_HandleUnlock_ValidRequest() {
9595
handler := handlers.NewUnlockHandler(msgChn, s.chains)
9696

9797
input := handlers.UnlockBody{
98-
Protocol: "lifi",
98+
Protocol: "lifi-escrow",
9999
OrderID: "id",
100100
Settler: "settler",
101101
}

0 commit comments

Comments
 (0)