Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading snaps-cli to 0.31 gives checksum mismatch error #1304

Closed
tmpfs opened this issue Mar 28, 2023 · 5 comments
Closed

Upgrading snaps-cli to 0.31 gives checksum mismatch error #1304

tmpfs opened this issue Mar 28, 2023 · 5 comments

Comments

@tmpfs
Copy link

tmpfs commented Mar 28, 2023

After upgrading @metamask/snaps-cli from 0.27.1 to 0.31.0 I get this error when trying to install/connect to the snap (using Flask 10.26.1):

{
    "code": -32603,
    "message": "Failed to fetch Snap \"local:http://localhost:7070/\": Invalid Snap manifest: manifest shasum does not match computed shasum..",
    "data": {
        "originalError": {}
    }
}

No errors are given building using snaps-cli and the manifest looks like this:

{
  "version": "0.2.0",
  "description": "Snap using threshold signatures to sign messages and transactions.",
  "proposedName": "Threshold Signatures",
  "repository": {
    "type": "git",
    "url": "https://github.com/LavaMoat/tss-snap"
  },
  "source": {
    "shasum": "6eELF6Z5UV8ypUeI9P9HadxswDp4BUCi00nGSDg+CkE=",
    "location": {
      "npm": {
        "filePath": "bundle.js",
        "iconPath": "images/icon.svg",
        "packageName": "@lavamoat/tss-snap",
        "registry": "https://registry.npmjs.org/"
      }
    }
  },
  "initialPermissions": {
    "snap_manageState": {},
    "endowment:rpc": {
      "dapps": true,
      "snaps": false
    }
  },
  "manifestVersion": "0.1"
}

I tried removing the snap first and that didn't help.

Any ideas what I need to do to get this working again please?

For now I will downgrade.

@FrederikBolding
Copy link
Member

The currently released Flask version is not compatible with 0.31.0. If you want to use the latest packages you need to build from the extension develop. An upcoming Flask version will bring support for 0.31.0.

@tmpfs
Copy link
Author

tmpfs commented Mar 28, 2023

Thanks @FrederikBolding, going to close this then.

@vorburger
Copy link

@FrederikBolding is 31 released now? I installed Flask today, and it says it's 10.31.0-flask.0 - is that the same as 0.31.0?

Could this be causing ChainSafe/filsnap#258 ?

@FrederikBolding
Copy link
Member

FrederikBolding commented Jun 7, 2023

@vorburger 0.31.0 has been released yes. Unfortunately there is not a 1:1 mapping between the Flask version and the version of the Snaps packages. But to support 10.31.0-flask.0 a snap must be built with minimum Snaps CLI version 0.30.0 (0.31.0 and onwards is also fine!)

@vorburger
Copy link

@FrederikBolding ACK, thanks. FYI and just FTR for future readers, in ChainSafe/filsnap#260 I have meanwhile rebuilt the shasum for filsnap with the latest (current) Snaps CLI in order to fix ChainSafe/filsnap#258.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants