While running
this project https://github.com/jimmychu0807/substrate-offchain-worker-demo
I'm geting this error:
error[E0282]: type annotations needed --> /libp2p-noise-0.32.0/src/protocol/x25519.rs:221:45
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityWhile running
this project https://github.com/jimmychu0807/substrate-offchain-worker-demo
I'm geting this error:
error[E0282]: type annotations needed --> /libp2p-noise-0.32.0/src/protocol/x25519.rs:221:45
This error looks an issue with versions, you are trying to run an example very old. You can try to fix it, see for example this previous StackExchange question similar to your error: type annotations needed in libp2p-noise.
But I would suggest to check the Substrate documentation: Add offchain workers where you have the Offchain Worker Example Pallet.
There is also a PR open in Substrate with a new example: refactor Offchain Worker examples