shawntabrizi / substrate-collectables-workshop

A guided tutorial for building an NFT marketplace with the Polkadot SDK
https://www.shawntabrizi.com/substrate-collectables-workshop/
MIT License
236 stars 101 forks source link

A 'TypeError’ occurs when use Substrate UI #146

Closed Eanam closed 3 months ago

Eanam commented 5 years ago

When I learn the lesson about how to develop cryptokitties ,there is a problem I dont know why, here is the problem: when I use the Substarte UI ,and I came to #Web-UI -> Creating Kitties ,the problem occurred when I input the command ''post({ sender: '5GoKvZWG5ZPYL1WUovuHW3zJBWBP5eT8CbqjdRY4Q6iMaDtZ', call: calls.substratekitties.createKitty() }).tie(console.log)" ,it return "Uncaught (in promise) TypeError: Cannot read property 'constructor' of null";

and here is a simple stack : codec.js:662 Uncaught (in promise) TypeError: Cannot read property 'constructor' of null at encode (codec.js:662) at eval (codec.js:474) at Array.map () at encode (codec.js:474) at encode (codec.js:510) at eval (transact.js:44) at new Promise () at composeTransaction (transact.js:17) at eval (transact.js:113) at TransformBond.eval (transformBond.js:111)

mitsu1124 commented 4 years ago

Hi, actually I have the same problem as above. Relating to it or not, CreateKitty button is disabled.

Pleasure if someone could help us out.

image

Eanam commented 4 years ago

Hi, actually I have the same problem as above. Relating to it or not, CreateKitty button is disabled.

Pleasure if someone could help us out.

image

Hi , actually I alreay fixed the problem . It is not caused by the code , It is caused by the operations that has not been written in the substratekitties course. below is waht you need to do before you do all the operations in the Gav's Substrate UI add the seed And Name add the accout exists since initial development for example :Alice's seed is //Alice , AliceStash's seed is //Alice//stash image add the accout which is created by yourself image

mitsu1124 commented 4 years ago

Hi @Eanam , glad for your support. It seems it worked for me. Very very appreciated.

image