streamingfast / substreams-playground

Apache License 2.0
19 stars 11 forks source link

Can't build pancakeswap #7

Closed YaroShkvorets closed 2 years ago

YaroShkvorets commented 2 years ago

Following this guide: https://github.com/streamingfast/substreams-playground/tree/master/modules/pancakeswap

➜  pancakeswap git:(master) ✗ ./build.sh
   Compiling pcs-substreams v0.1.0 (/Users/shkvo/github/Graph/substreams-playground/modules/pancakeswap)
error[E0603]: module `state` is private
 --> modules/pancakeswap/src/lib.rs:8:30
  |
8 | use substreams::{log, proto, state};
  |                              ^^^^^ private module
  |
note: the module `state` is defined here
 --> /Users/shkvo/.cargo/git/checkouts/substreams-d3f7d5c3b7fe7d2c/1cecae2/rust/substreams/src/lib.rs:3:1
  |
3 | mod state;
  | ^^^^^^^^^^
YaroShkvorets commented 2 years ago

works now