diff --git a/precompiles/xcm/XCM.sol b/precompiles/xcm/XCM.sol index e41f7dff86..408e1e07ef 100644 --- a/precompiles/xcm/XCM.sol +++ b/precompiles/xcm/XCM.sol @@ -5,12 +5,6 @@ pragma solidity ^0.8.0; */ interface XCM { - // A multilocation is defined by its number of parents and the encoded junctions (interior) - struct Multilocation { - uint8 parents; - bytes[] interior; - } - /** * @param asset_id - list of XC20 asset addresses * @param asset_amount - list of transfer amounts (must match with asset addresses above) @@ -117,12 +111,4 @@ interface XCM { uint256 fee_index ) external returns (bool); - /** - * @param destination - Multilocation of destination chain where to send this call - * @param xcm_call - encoded xcm call you want to send to destination - **/ - function send_xcm( - Multilocation memory destination, - bytes memory xcm_call - ) external returns (bool); } diff --git a/precompiles/xcm/XCM_v2.sol b/precompiles/xcm/XCM_v2.sol index fe5d61091d..53aa556d88 100644 --- a/precompiles/xcm/XCM_v2.sol +++ b/precompiles/xcm/XCM_v2.sol @@ -128,4 +128,13 @@ interface XCM { Multilocation memory destination, WeightV2 memory weight ) external returns (bool); + + /** + * @param destination - Multilocation of destination chain where to send this call + * @param xcm_call - encoded xcm call you want to send to destination + **/ + function send_xcm( + Multilocation memory destination, + bytes memory xcm_call + ) external returns (bool); }