safe-core-sdk icon indicating copy to clipboard operation
safe-core-sdk copied to clipboard

Remove metadata from `safeVersion`

Open iamacook opened this issue 1 year ago • 0 comments

Context / issue

L2 Safe contract versions are returned with +L2 metadata from the gateway. (Circles also contains +Circles metadata).

1.3.0+L2 is currently an invalid version. It won't allow usage of the SDK.

Proposed solution

Using semver for version retrieval as it strips metadata.

Alternatives

Metadata is marked with + by default. It can be remove manually:

  const [noMetadataVersion] = safeVersion.split('+')

iamacook avatar Sep 19 '22 08:09 iamacook