Trying to compile a V3 macro style pallet against the latest polkadot (0.9.24) dependencies fails with error:
error[E0277]: the trait bound `<T as frame_system::Config>::AccountId: std::default::Default` is not satisfied
--> pallet-tft-bridge/src/lib.rs:138:1
|
138 | / decl_storage! {
139 | | trait Store for Module<T: Config> as TFTBridgeModule {
140 | | pub Validators get(fn validator_accounts): Vec<T::AccountId>;
141 | | pub FeeAccount get(fn fee_account): T::AccountId;
... |
180 | | }
181 | | }
| |_^ the trait `std::default::Default` is not implemented for `<T as frame_system::Config>::AccountId`
|
= note: this error originates in the macro `decl_storage` (in Nightly builds, run with -Z macro-backtrace for more info)
Do I need to rewrite my pallet using the new syntax style in 4.0.0-dev?
Default
is remove from impl of AccountId, make it returnOption<AccountId>