Context:
i'm building a "sub-treasury" pallet, and for it, i'd like to start from the existing substrate's pallet_treasury.
Problem:
In Cargo.toml, there is relative paths (like sp-io = {version=...... path="../../sp-io"}
Obviously had to change it, but then in lib.rs, i had a loooooot of errors.
those errors are mainly "the trait frame_support::[something i can't use
]::[the trait] is not implemented for [Proposal<...> or #[pallet::call]]
for example purpose, here is the first error given by cargo:
error[E0277]: the trait bound `pallet::Call<T, I>: frame_support::parity_scale_codec::WrapperTypeEncode` is not satisfied
--> pallets/sub_treasury/src/lib.rs:296:12
|
296 | #[pallet::call]
| ^^^^ the trait `frame_support::parity_scale_codec::WrapperTypeEncode` is not implemented for `pallet::Call<T, I>`
|
...
note: required by a bound in `frame_support::Callable::Call`
--> /home/erudyx/.cargo/git/checkouts/substrate-7e08433d4c370a21/19162e4/frame/support/src/dispatch.rs:56:38
|
56 | type Call: UnfilteredDispatchable + Codec + Clone + PartialEq + Eq;
| ^^^^^ required by this bound in `frame_support::Callable::Call`
Question:
I'd like to know if there is a proper way to fork a pallet. Is there a specific branch to fork from ? A specific repo ? Is there a place where the procedure is documented ?