Skip to content

Commit 5433009

Browse files
committed
Use depositId field for getting mayan order hash
1 parent db08068 commit 5433009

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

api/handlers/signing.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ func (h *SigningHandler) HandleSigning(w http.ResponseWriter, r *http.Request) {
8282
}
8383
case MayanProtocol:
8484
{
85+
8586
m = evmMessage.NewMayanMessage(0, b.ChainId, &evmMessage.MayanData{
87+
OrderHash: b.DepositId,
8688
Nonce: b.Nonce.Int,
8789
LiquidityPool: common.HexToAddress(b.LiquidityPool),
8890
Caller: common.HexToAddress(b.Caller),

chains/evm/message/mayan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (h *MayanMessageHandler) HandleMessage(m *message.Message) (*proposal.Propo
112112
data.ErrChn <- err
113113
return nil, err
114114
}
115-
swap, err := h.swapFetcher.GetSwap(txHash.Hex())
115+
swap, err := h.swapFetcher.GetSwap(data.OrderHash)
116116
if err != nil {
117117
data.ErrChn <- err
118118
return nil, err

chains/evm/message/message.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func NewAcrossMessage(source, destination uint64, acrossData *AcrossData) *messa
5050
type MayanData struct {
5151
ErrChn chan error `json:"-"`
5252

53+
OrderHash string
5354
Coordinator peer.ID
5455
LiquidityPool common.Address
5556
Caller common.Address

0 commit comments

Comments
 (0)