AttributeError: 'NoneType' object has no attribute 'get_type_string' #376
-
I would need help with resolving an error that occurs when im trying to use compose_call function.
I get the following error:
When i print the call_module that is called in the process_encode method i get the object printed, however the parameter calls is not included (call_type_string = self.call_module['calls'].value_object.get_type_string()) -> the code fails here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After examining the metadata of the runtime, I found out that the However, the error handler could be improved here, the current thrown exception is indeed confusing and should be something like |
Beta Was this translation helpful? Give feedback.
After examining the metadata of the runtime, I found out that the
Balances
pallet for the endpoint you provided has in fact no runtime calls at all (so calltransfer
couldn't be found). You can also check PolkadotJSHowever, the error handler could be improved here, the current thrown exception is indeed confusing and should be something like
Call function 'transfer' not found
. I'll make an issue for this.