Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

fix: avoid marshaller error in watchWallet #92

Closed samsiegart closed 4 months ago

samsiegart commented 4 months ago

We changed it recently to wrap the marshaller in Far, which resulted in the following error and offer updates not being received:

wallet connection error Error: RPC error - Error: Remotable {"fromCapData":"[Function mn]","serialize":"[Function Ft]","toCapData":"[Function Ft]","unserialize":"[Function mn]"} is already frozen
LuqiPan commented 4 months ago

I just tried "@agoric/web-components": "^0.15.1-dev-09ca26c.0" but I seemed to still get this error? (Code is at https://github.com/Agoric/dapp-agoric-basics/pull/18)

Screenshot 2024-03-06 at 3 47 59 PM
samsiegart commented 4 months ago

I just tried "@agoric/web-components": "^0.15.1-dev-09ca26c.0" but I seemed to still get this error? (Code is at Agoric/dapp-agoric-basics#18)

Screenshot 2024-03-06 at 3 47 59 PM

Ah okay, it seems like you also have to use the new version of @agoric/react-components, so that it uses the new version of @agoric/web-components when creating the wallet connection: https://www.npmjs.com/package/@agoric/react-components/v/0.1.1-dev-09ca26c.0