Skip to content

Commit df0bad6

Browse files
committed
fix: use tx hash from lifi api
1 parent d7ddecb commit df0bad6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chains/evm/message/confirmations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (w *Watcher) wait(ctx context.Context, txHash common.Hash, requiredConfirma
8888
for {
8989
select {
9090
case <-ctx.Done():
91-
return fmt.Errorf("timed out waiting for confirmations")
91+
return fmt.Errorf("timed out waiting for confirmations %s", txHash.Hex())
9292
default:
9393
txReceipt, err := w.client.TransactionReceipt(ctx, txHash)
9494
if err != nil {

chains/evm/message/lifiEscrow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (h *LifiEscrowMessageHandler) HandleMessage(m *message.Message) (*proposal.
118118
err = h.confirmationWatcher.WaitForOrderConfirmations(
119119
context.Background(),
120120
h.chainID,
121-
common.HexToHash(data.DepositTxHash),
121+
*order.Meta.OrderInitiatedTxHash,
122122
orderValue,
123123
)
124124
if err != nil {

0 commit comments

Comments
 (0)