4

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

1 Answer 1

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.