Skip to content

Commit

Permalink
fix frame tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam committed Aug 25, 2023
1 parent bc58000 commit 274936f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ error[E0277]: the trait bound `Runtime: Config` is not satisfied
... |
|
note: required by a bound in `frame_system::Event`
--> $WORKSPACE/frame/system/src/lib.rs
--> $WORKSPACE/substrate/frame/system/src/lib.rs
|
| pub enum Event<T: Config> {
| ^^^^^^ required by this bound in `Event`
Expand Down Expand Up @@ -97,7 +97,7 @@ note: required because it appears within the type `RuntimeEvent`
| ||_- in this macro invocation
... |
note: required by a bound in `EncodeLike`
--> $CARGO/parity-scale-codec-3.6.1/src/encode_like.rs
--> $CARGO/parity-scale-codec-3.6.4/src/encode_like.rs
|
| pub trait EncodeLike<T: Encode = Self>: Sized + Encode {}
| ^^^^^ required by this bound in `EncodeLike`
Expand Down Expand Up @@ -129,7 +129,7 @@ note: required because it appears within the type `RuntimeEvent`
| ||_- in this macro invocation
... |
note: required by a bound in `Decode`
--> $CARGO/parity-scale-codec-3.6.1/src/codec.rs
--> $CARGO/parity-scale-codec-3.6.4/src/codec.rs
|
| pub trait Decode: Sized {
| ^^^^^ required by this bound in `Decode`
Expand Down Expand Up @@ -293,7 +293,7 @@ note: required because it appears within the type `RuntimeCall`
| ||_- in this macro invocation
... |
note: required by a bound in `EncodeLike`
--> $CARGO/parity-scale-codec-3.6.1/src/encode_like.rs
--> $CARGO/parity-scale-codec-3.6.4/src/encode_like.rs
|
| pub trait EncodeLike<T: Encode = Self>: Sized + Encode {}
| ^^^^^ required by this bound in `EncodeLike`
Expand Down Expand Up @@ -326,7 +326,7 @@ note: required because it appears within the type `RuntimeCall`
| ||_- in this macro invocation
... |
note: required by a bound in `Decode`
--> $CARGO/parity-scale-codec-3.6.1/src/codec.rs
--> $CARGO/parity-scale-codec-3.6.4/src/codec.rs
|
| pub trait Decode: Sized {
| ^^^^^ required by this bound in `Decode`
Expand All @@ -339,7 +339,7 @@ error[E0277]: the trait bound `Runtime: Config` is not satisfied
| ^^^^^^ the trait `Config` is not implemented for `Runtime`
|
note: required by a bound in `frame_system::GenesisConfig`
--> $WORKSPACE/frame/system/src/lib.rs
--> $WORKSPACE/substrate/frame/system/src/lib.rs
|
| pub struct GenesisConfig<T: Config> {
| ^^^^^^ required by this bound in `GenesisConfig`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ error[E0277]: the trait bound `pallet::GenesisConfig: std::default::Default` is
| ^^^^^^^^^^^^^ the trait `std::default::Default` is not implemented for `pallet::GenesisConfig`
|
note: required by a bound in `BuildGenesisConfig`
--> $WORKSPACE/frame/support/src/traits/hooks.rs
--> $WORKSPACE/substrate/frame/support/src/traits/hooks.rs
|
| pub trait BuildGenesisConfig: Default + sp_runtime::traits::MaybeSerializeDeserialize {
| ^^^^^^^ required by this bound in `BuildGenesisConfig`
help: consider annotating `pallet::GenesisConfig` with `#[derive(Default)]`
|
|
19 + #[derive(Default)]
20 | pub struct GenesisConfig;
|
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ error[E0107]: missing generics for trait `Hooks`
| ^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `BlockNumber`
--> $WORKSPACE/frame/support/src/traits/hooks.rs
--> $WORKSPACE/substrate/frame/support/src/traits/hooks.rs
|
| pub trait Hooks<BlockNumber> {
| ^^^^^ -----------
help: add missing generic argument
|
12 | impl<T: Config> Hooks<BlockNumber> for Pallet<T> {}
| +++++++++++++
|
12 | impl<T: Config> Hooks<BlockNumber> for Pallet<T> {}
| +++++++++++++

0 comments on commit 274936f

Please sign in to comment.