Skip to content

Cosmos-kit incompatible with lockdown #2029

@samsiegart

Description

@samsiegart

Describe the bug

When trying to use https://github.com/cosmology-tech/cosmos-kit in a React app with lockdown, it crashes with an error like:

TypeError: Cannot assign to read only property 'concat' of object '[object Object]'

Steps to reproduce

  1. Go to https://github.com/agoric-labs/cosmos-kit-ses?tab=readme-ov-file
  2. Clone the repo
  3. yarn && yarn dev to run locally
  4. Reload the url outputted by yarn dev
  5. Observe the app crashes to a blank page and the error appears in the console

Expected behavior

There should be some way to use cosmos-kit alongside endo

Platform environment

  • What OS are you using? MacOS 13.3.1 (22E261)
  • What version of Node.js? v18.17.1
  • Is there anything special/unusual about your platform? No
  • What version of Endo are you using? "ses": "^1.1.0"

Additional context

I tried using @endo/init/unsafe-fast.js to circumvent the issue in this branch unsuccessfully. It throws a different error TypeError#2: Cannot perform 'ownKeys' on a proxy that has been revoked described in the README.

Screenshots

Screenshot 2024-02-01 at 10 24 59 AM

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions