diff --git a/pallets/liquidity-pools-forwarder/src/lib.rs b/pallets/liquidity-pools-forwarder/src/lib.rs index 78eaf60f47..a93d4cb8d4 100644 --- a/pallets/liquidity-pools-forwarder/src/lib.rs +++ b/pallets/liquidity-pools-forwarder/src/lib.rs @@ -211,7 +211,7 @@ pub mod pallet { ) -> DispatchResult { let msg = RouterForwarding::::get(&router_id) .map(|info| { - T::Message::try_wrap_forward(info.source_domain, info.contract, message.clone()) + T::Message::try_wrap_forward(Domain::Centrifuge, info.contract, message.clone()) }) .unwrap_or_else(|| { ensure!(!message.is_forwarded(), Error::::ForwardInfoNotFound); diff --git a/pallets/liquidity-pools/src/message.rs b/pallets/liquidity-pools/src/message.rs index f3b3713023..07d469dd0e 100644 --- a/pallets/liquidity-pools/src/message.rs +++ b/pallets/liquidity-pools/src/message.rs @@ -660,7 +660,7 @@ impl LpMessageForwarded for Message { } fn try_wrap_forward( - source_domain: Domain, + source_domain: Self::Domain, forwarding_contract: H160, message: Self, ) -> Result {