Open mixmix opened 2 weeks ago
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.