JoshOrndorff / recipes

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

Extrinsics sayHello() of helloSubstrate pallets Error: Unable to decode storage system.account #436

Closed CocDap closed 2 years ago

CocDap commented 3 years ago

I run helloSubstrate pallet example in https://github.com/substrate-developer-hub/recipes/ -> when extrinsics in polkadotjs development -> error Capture

Anyone can help me!!! THank you

JoshOrndorff commented 3 years ago

Thanks for trying the recipes!

You are running the kitchen node right? You need to add some custom types to Polkadot JS Apps. The types are https://github.com/substrate-developer-hub/recipes/blob/master/runtimes/super-runtime/types.json . Notice there is such a file for each runtime included in the recipes.

You just need to copy that JSON into Polkadot JS Apps. Go to the Settings tab and Developer subtab.

CocDap commented 3 years ago

@JoshOrndorff I tried inserting contents of type.json in super-runtime in Developer tab BUT still ERRORs. I believe that when I git clone recipes -> dont have define pallet-aura/ pallet-babe in order to produce new block and dont have pallet-grandpa to finalize block. Can you check and confirm me ? Thanks you. Sorry I am newbie

JoshOrndorff commented 3 years ago

You're correct that the super runtime does not have aura, babe, or grandpa support. This is intentional. The super runtime is meant to be used in nodes that use instant seal, manual seal, or proof of work. All of those are demonstrated in the recipes.

You're also correct that this is not working at the moment. Thank you for reporting it. I've opened #439 to fix it.