pendulum-chain / substrate-stellar-sdk

A Rust SDK for Stellar that can be used for Substrate projects
Apache License 2.0
11 stars 11 forks source link

fix unresolved import `sp_core::to_substrate_wasm_fn_return_value` #10

Closed b-yap closed 2 years ago

b-yap commented 2 years ago
 error[E0432]: unresolved import `sp_core::to_substrate_wasm_fn_return_value`
    --> /home/.cargo/git/checkouts/substrate-7e08433d4c370a21/814752f/primitives/api/src/lib.rs:80:9
     |
  80 | pub use sp_core::to_substrate_wasm_fn_return_value;
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `to_substrate_wasm_fn_return_value` in the root

^ The error occurs when std libraries are used for no_std substrate code. This will help https://github.com/pendulum-chain/spacewalk/issues/75.