I am running the Astar node locally and pointing to the astar-frame repository which is cloned on my local machine. In the Astar
node repository, I added the paths-override method to the point all dependencies of astar-frame
to the local folder which solved some dependency issues.
When building the Astar
node using cargo build --release
, I get the following error:
error[E0046]: not all trait items implemented, missing: `reserve_withdraw_assets`
--> /Users/snowmead/.cargo/git/checkouts/polkadot-4038f27d5e4ea2e8/c22e1c4/runtime/polkadot/src/weights/pallet_xcm.rs:47:1
|
47 | impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `reserve_withdraw_assets` in implementation
|
= help: implement the missing item: `fn reserve_withdraw_assets() -> _feps::Weight { todo!() }`
Since I haven't modified anything in astar-frame
pallet-xcm, I believe this might be a dependency issue. And to confirm that this trait item is implemented, we see in the pallet_xcm::Config
trait that it uses pallet_xcm::weights::SubstrateWeight<Runtime>;
which implements the reserve_withdraw_assets
trait item.
pallet-xcm
is a sub dependency ofpolkadot-runtime
which is imported in the nomination pool pallet. Astar-frame has their own fork ofpallet-xcm
and therefore is conflicting with thepolkadot-runtime
.Astar
. We will remove the custom fork ofpallet-xcm
soon, and will also merge the two repos we have into one.