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
I think you can get the current version number of the runtime from a subxt client by doing api.runtime_version().spec_version. I imagine polkadot js has something similar. But i don't know whether this is telling you the runtime version the client is expecting (from the entropy-metadata.scale file) or the runtime version of the connected chain endpoint (by actually doing a query).
Ideally you want to know both and be able to compare them.
Usually though with subxt i get a pretty clear error MetadataError::IncompatibleCodegen which can be shown to the user as 'you need to update your client'.
The problem
I noticed a really unhelpful test when trialing the CLI. I told it to make a register an account and got this:
Very unhelpful response as a CLI user.
The actual problem is that the default endpoint it was connecting to is on an old version of Entropy core compared to CLI.
Questions
I'm wondering
Obviously we would make less breaking changes, but as the CLI developer I'm wanting to make it clear/ safe for my users.
The text was updated successfully, but these errors were encountered: