JoshOrndorff / recipes

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

Trying to send a transaction in kitchen node, but error #481

Closed yumingchangsabodota closed 2 years ago

yumingchangsabodota commented 2 years ago

I am getting errors like cannot convert parameters between node and runtime, what am I doing wrong here? Thanks

image

JoshOrndorff commented 2 years ago

Are you using polkadot JS? This is a classic substrate problem when polkadot JS doesn't know the types.

yumingchangsabodota commented 2 years ago

yes, how should I send a sign transaction through terminal? Sorry, I am completely new to substrate and really want to learn and build my own chain.

JoshOrndorff commented 2 years ago

The most likely cause is that the polkadot JS you are using is too new. The recipes need to be updated to a newer substrate version.

yumingchangsabodota commented 2 years ago

Found solution. Updated json in the polkadot js frontend as below:

{ "TransactionInput": { "parent_output": "Hash", "signature": "Signature" }, "TransactionOutput": { "value": "u128", "pubkey": "Hash", "sale": "u32" }, "Transaction": { "inputs": "Vec<TransactionInput>", "outputs": "Vec<TransactionOutput>" }, "Entity": { "parent": "Option<Vec<u8>>", "status": "Vec<u8>", "name": "Vec<u8>" } }