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

fix: avoid marshaller error in watchWallet #92

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

samsiegart
Copy link
Contributor

@samsiegart samsiegart commented Mar 6, 2024

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

Copy link

@LuqiPan LuqiPan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for investigating and fixing this :shipit:

@samsiegart samsiegart merged commit b6218dd into main Mar 6, 2024
1 check passed
@samsiegart samsiegart deleted the fix-far-error branch March 6, 2024 22:05
@@ -255,7 +255,7 @@ export const watchWallet = (
const leader = makeLeader(rpc);
const follower = makeFollower(`:published.wallet.${address}`, leader, {
proof: 'none',
unserializer: Far('marshaller', chainStorageWatcher.marshaller),
unserializer: Far('marshaller', { ...chainStorageWatcher.marshaller }),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samsiegart What is the purpose of including Far here at all?

@LuqiPan
Copy link

LuqiPan commented Mar 6, 2024

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

@samsiegart
Copy link
Contributor Author

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

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

Successfully merging this pull request may close these issues.

3 participants