diff --git a/chains/evm/calls/consts/lifi.go b/chains/evm/calls/consts/lifi.go index de7abf34..f96d1024 100644 --- a/chains/evm/calls/consts/lifi.go +++ b/chains/evm/calls/consts/lifi.go @@ -22,7 +22,7 @@ var LifiABI, _ = abi.JSON(strings.NewReader(`[{ {"name": "token", "type": "bytes32"}, {"name": "amount", "type": "uint256"}, {"name": "recipient", "type": "bytes32"}, - {"name": "call", "type": "bytes"}, + {"name": "callbackData", "type": "bytes"}, {"name": "context", "type": "bytes"} ] }, diff --git a/chains/evm/message/lifiEscrow.go b/chains/evm/message/lifiEscrow.go index 485d1775..5674eab6 100644 --- a/chains/evm/message/lifiEscrow.go +++ b/chains/evm/message/lifiEscrow.go @@ -207,19 +207,19 @@ func (h *LifiEscrowMessageHandler) borrowToken(order *lifi.LifiOrder) (common.Ad func (h *LifiEscrowMessageHandler) calldata(order *lifi.LifiOrder) ([]byte, error) { type output struct { - Oracle common.Hash - Settler common.Hash - Recipient common.Hash - ChainId *big.Int - Token common.Hash - Amount *big.Int - Call []byte - Context []byte + Oracle common.Hash + Settler common.Hash + Recipient common.Hash + ChainId *big.Int + Token common.Hash + Amount *big.Int + CallbackData []byte + Context []byte } outputs := make([]output, len(order.Order.Outputs)) for i, o := range order.Order.Outputs { chainID := new(big.Int).SetUint64(o.ChainID) - call, err := hexutil.Decode(o.Call) + callbackData, err := hexutil.Decode(o.CallbackData) if err != nil { return nil, err } @@ -228,14 +228,14 @@ func (h *LifiEscrowMessageHandler) calldata(order *lifi.LifiOrder) ([]byte, erro return nil, err } outputs[i] = output{ - Oracle: *o.Oracle, - Settler: *o.Settler, - ChainId: chainID, - Amount: o.Amount.Int, - Recipient: *o.Recipient, - Call: call, - Context: context, - Token: *o.Token, + Oracle: *o.Oracle, + Settler: *o.Settler, + ChainId: chainID, + Amount: o.Amount.Int, + Recipient: *o.Recipient, + CallbackData: callbackData, + Context: context, + Token: *o.Token, } } diff --git a/go.mod b/go.mod index dc58d114..8a269bbd 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/rs/zerolog v1.25.0 github.com/spf13/cobra v1.8.1 github.com/spf13/viper v1.9.0 - github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc + github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82 github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9 github.com/stretchr/testify v1.10.0 github.com/sygmaprotocol/sygma-core v0.0.0-20250304150334-bd39ac4f7b82 diff --git a/go.sum b/go.sum index 0d3142e2..b7d388e2 100644 --- a/go.sum +++ b/go.sum @@ -954,6 +954,8 @@ github.com/sprintertech/lifi-solver v0.0.0-20251106144931-4586926e1a4c h1:gt7WBO github.com/sprintertech/lifi-solver v0.0.0-20251106144931-4586926e1a4c/go.mod h1:3yuTgBKvA5WLCFsXXuBnOzk5nNS58phc881uXLGfD0o= github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc h1:h/DY03o7cOez2Ilrwt9TO9BKWIYrAo3o/KvhvEwkziQ= github.com/sprintertech/lifi-solver v0.0.0-20251107125259-138b58fd00bc/go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng= +github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82 h1:Nq9wH4wU4W+3UXfeTqGwMBxr+yKDkz0wO6XzpSRkamg= +github.com/sprintertech/lifi-solver v0.0.0-20251107154632-5c22e7948a82/go.mod h1:d5/fytopwudQUE9ojF54XwtqLRFD3JbpBlri7ygb3ng= github.com/sprintertech/solver-config/go v0.0.0-20251027142430-7f32bdd5da1e h1:5sSP6GbqCT/ApxxZmUtav6GHy5Ke98zh5oqQxewhJd4= github.com/sprintertech/solver-config/go v0.0.0-20251027142430-7f32bdd5da1e/go.mod h1:MrIGW6M815PSYKtWSeOd1Z7eiSeOIk/uA/6E2PhlQVQ= github.com/sprintertech/solver-config/go v0.0.0-20251107123115-0ea5f862cab9 h1:oo4/4LvkYMVVl/u9+iqEY91iCDFJ05pGwUJNX+6APnA=