JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 187 forks source link

[inquiry]testing error #311

Closed puffanddmx closed 4 years ago

puffanddmx commented 4 years ago

[q1] I was creating my own runtime and testing unit transfer to alice -> bob using kitchen node recipes. However, the transmission for extrinsic was not successful and the following error message was obtained. I didn't even put it in the instant seal block. The tx interpretation seems to be different, maybe. how can i solve this?

-error log Failed to submit extrinsic: Extrinsic verification error: Execution(ApiError("Could not convert parameter tx between node and runtime: No such variant in enum MultiSignature"))

1: author.submitAndWatchExtrinsic 1002: Verification Error: Execution(ApiError("Could not convert parameter tx between node and runtime: No such variant in enum MultiSignature")): RuntimeApi("Execution(ApiError(\"Could not convert parameter tx between node and runtime: No such

[q2] when i build my custom runtime(cargo build --release -p my _runtime), i got this error . how can i solve this?

-error log Compiling frame-system v2.0.0-rc3 Compiling sp-api v2.0.0-rc3 error[E0432]: unresolved import sp_core::to_substrate_wasm_fn_return_value --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-api-2.0.0-rc3/src/lib.rs:54:9 | 54 | 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

-error log

danforbes commented 4 years ago

[q1] I think it may be possible that you are encountering one of these two issues: 1) https://polkadot.js.org/api/start/FAQ.html#the-node-returns-a-could-not-convert-error-on-send, 2) https://polkadot.js.org/api/start/FAQ.html#i-cannot-send-transactions-from-my-node-template-based-chain. [q2] I think I need to see more of your code to help with this.

wheresaddie commented 4 years ago

If you're in the riot channels, its often the fastest way to solve this-- feel free to ping us there :+1:

0xdavid7 commented 2 years ago

@danforbes I have the same problems with [q2]? Can you help me?