polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 116 forks source link

KeyError: 'type' #121

Closed 99Kies closed 3 years ago

99Kies commented 3 years ago

image

99Kies commented 3 years ago

image

99Kies commented 3 years ago

image image and, I can't get all the values through this tool.

99Kies commented 3 years ago

How to solve this problem correctly. image

99Kies commented 3 years ago

I solved this.

ToufeeqP commented 3 years ago

@99Kies I am getting the same error, May I know how did you solved this?

99Kies commented 3 years ago

@99Kies I am getting the same error, May I know how did you solved this?

You need to add the data type you set in default.json. https://github.com/polkascan/py-substrate-interface/issues/121#issuecomment-872690411

99Kies commented 3 years ago

@99Kies I am getting the same error, May I know how did you solved this?

You need to be aware that when calling this method it is best to distinguish between a Value and a Map.