streamingfast / substreams-ethereum-quickstart

Ethereum Example for Substreams Documentation
Apache License 2.0
5 stars 4 forks source link

generated wrong `src/pb/mod.rs` before creation #2

Closed Pelotfr closed 1 year ago

Pelotfr commented 1 year ago

When following the quickstart guide, and using substreams protogen, the src/pb/mod.rs will be automatically generated with a different content than what the guide asks us to manually create.

By the way the given substreams protogen command is missing the " character at the end.

The generated src/pb/mod.rs will yield an unresolved import error when trying to build later.

Here are some screens to better understand:

Documentation: (with missing " and the content asked to create manually) image

Command output on my side: image

File src/pb/mod.rs generated after the command: image

Error prompted when trying to build: image

Package versions: image

maoueh commented 1 year ago

Thanks, I've fixed everything and also updated https://github.com/streamingfast/substreams-ethereum-quickstart to use substreams protogen latest version which generates the mod.rs automatically now.

Let me know if anything else is not working properly.