sunshine-protocol / sunshine

Governance + Bounty Platform
Other
43 stars 16 forks source link

node builds but vote-yesno does not compile #33

Closed 4meta5 closed 4 years ago

4meta5 commented 4 years ago

when I try to build vote-yesno, I get the following compiler error

➜  vote-yesno git:(master) ✗ cargo build
    Blocking waiting for file lock on build directory
   Compiling sp-api v2.0.0-alpha.3 (https://github.com/paritytech/substrate.git?rev=013c1ee167354a08283fb69915fda56a62fee943#013c1ee1)
   Compiling util v0.0.1 (/Users/4meta5/w3gs/sunshine/modules/util)
error[E0432]: unresolved import `sp_core::to_substrate_wasm_fn_return_value`
  --> /Users/4meta5/.cargo/git/checkouts/substrate-7e08433d4c370a21/013c1ee/primitives/api/src/lib.rs:49:9
   |
49 | pub use sp_core::to_substrate_wasm_fn_return_value;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `to_substrate_wasm_fn_return_value` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `sp-api`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

and I've seen this before...

4meta5 commented 4 years ago

It says it can't compile sp-api. I'm using a specific substrate commit so I don't know how I got here. It worked and then all of a sudden it didn't.

4meta5 commented 4 years ago

ugh found it, forgot to include pallet-balances/std in the std list