You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if len(params) != len(param_types):
raise ValueError(f'Storage function requires {len(param_types)} parameters, {len(params)} given')
Tried to subscribe to Substrate events by calling "state_subscribeStorage" directly and it works, so it seems that SubstrateInterface limitation on params length is not correct
The text was updated successfully, but these errors were encountered:
System.Account needs a parameter to be able to add a subscription, as far as I know it won't be possible to create a storage subscription an a Mapped storage function without the required parameters.
System.Events is not a Mapped storage function and that's why it can be subscribed without parameters. Actually I was curious as well and commented out the restriction to see what happens, but no updates are received from the RPC.
You partially right: subscription does not work if passing storage_hash which was created only with "System" + "Account" and without param. But if send data to websocket without "params" completely then all storage changes returned and System.Account changes can be fetched
I'd like to be able to track any account balance change, so trying
but the following happens
Tried to subscribe to Substrate events by calling "state_subscribeStorage" directly and it works, so it seems that SubstrateInterface limitation on params length is not correct
The text was updated successfully, but these errors were encountered: