Skip to content

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

@tmpfs

Description

@tmpfs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions