Skip to content

Commit

Permalink
fix: avoid marshaller error in watchWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
samsiegart committed Mar 6, 2024
1 parent a01a6e0 commit b53a52e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web-components/src/wallet-connection/watchWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { AmountMath } from '@agoric/ertp';
import { iterateEach, makeFollower, makeLeader } from '@agoric/casting';
import { Tendermint34Client } from '@cosmjs/tendermint-rpc';
import { AgoricChainStoragePathKind } from '@agoric/rpc';
import { Far } from '@endo/marshal';
import { queryBankBalances } from './queryBankBalances.js';

/** @typedef {import("@agoric/rpc").ChainStorageWatcher} ChainStorageWatcher */
Expand Down Expand Up @@ -255,7 +254,9 @@ export const watchWallet = (
const leader = makeLeader(rpc);
const follower = makeFollower(`:published.wallet.${address}`, leader, {
proof: 'none',
unserializer: Far('marshaller', chainStorageWatcher.marshaller),
// @ts-expect-error Errors with "Remotable ... is already frozen" when
// wrapping in "Far".
unserializer: chainStorageWatcher.marshaller,
});

for await (const update of iterateEach(follower)) {
Expand Down

0 comments on commit b53a52e

Please sign in to comment.