polkascan / py-substrate-interface

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

How to disable an option in storage query #167

Closed johnuopini closed 2 years ago

johnuopini commented 2 years ago

When using "Substrate Portal" storage query i can disable optional parameters using a toggle called "Include Option", which allows me to call a method without a parameter when optional. I cannot reproduce the same using this interface, there is no way to provide None as an argument or disable an option.

arjanz commented 2 years ago

Have you tried the query_map() function?

johnuopini commented 2 years ago

Have you tried the query_map() function?

That was it! Thanks!