Skip to content

Commit 67fdc01

Browse files
committed
Fix signature
1 parent 450c470 commit 67fdc01

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

chains/evm/message/unlock.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,18 @@ import (
1313
"github.com/libp2p/go-libp2p/core/host"
1414
"github.com/libp2p/go-libp2p/core/peer"
1515
"github.com/rs/zerolog/log"
16-
"github.com/sprintertech/sprinter-signing/chains/evm/signature"
1716
"github.com/sprintertech/sprinter-signing/comm"
1817
"github.com/sprintertech/sprinter-signing/tss"
1918
"github.com/sprintertech/sprinter-signing/tss/ecdsa/signing"
2019
"github.com/sygmaprotocol/sygma-core/relayer/message"
2120
"github.com/sygmaprotocol/sygma-core/relayer/proposal"
2221
)
2322

23+
const (
24+
DOMAIN_NAME = "OIFEscrowLIFI"
25+
VERSION = "1"
26+
)
27+
2428
type LifiUnlockHandler struct {
2529
chainID uint64
2630

@@ -158,9 +162,9 @@ func (h *LifiUnlockHandler) lifiUnlockHash(data *LifiUnlockData) ([]byte, error)
158162
},
159163
PrimaryType: "AllowOpen",
160164
Domain: apitypes.TypedDataDomain{
161-
Name: signature.DOMAIN_NAME,
165+
Name: DOMAIN_NAME,
162166
ChainId: &chainId,
163-
Version: signature.VERSION,
167+
Version: VERSION,
164168
VerifyingContract: data.Settler.Hex(),
165169
},
166170
Message: msg,

0 commit comments

Comments
 (0)