Followed steps from this link https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
but getting errors after >cargo build --release
error[E0277]: the trait bound <System as Trait>::BlockNumber: From<i32>
is not satisfied
--> /Users/ion/.cargo/registry/src/github.com-1ecc6299db9ec823/frame-executive-2.0.0/src/lib.rs:471:37
|
471 | header.number().saturating_sub(1.into())
| ^^^^ the trait From<i32>
is not implemented for <System as Trait>::BlockNumber
|
= note: required because of the requirements on the impl of Into<<System as Trait>::BlockNumber>
for i32
help: consider further restricting the associated type
|
449 | pub fn offchain_worker(header: &System::Header) where ::BlockNumber: From {
Actually, there were 2 other couple errors, but I managed to get past those. Any tips on how to resolve this?