Skip to content

Commit

Permalink
feat: one marshaller per WalletUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 6, 2024
1 parent 1563f0f commit b141ce6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client-utils/src/wallet-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { boardSlottingMarshaller, makeRpcUtils } from './rpc.js';
export const makeWalletUtils = async ({ fetch, delay }, networkConfig) => {
const { agoricNames, fromBoard, marshaller, readLatestHead, vstorage } =
await makeRpcUtils({ fetch }, networkConfig);
const m = boardSlottingMarshaller(fromBoard.convertSlotToVal);

const client = await makeStargateClient(networkConfig);

Expand All @@ -17,8 +18,6 @@ export const makeWalletUtils = async ({ fetch, delay }, networkConfig) => {
* @param {number|string} [minHeight]
*/
const storedWalletState = async (from, minHeight = undefined) => {
const m = boardSlottingMarshaller(fromBoard.convertSlotToVal);

const history = await vstorage.readFully(
`published.wallet.${from}`,
minHeight,
Expand Down

0 comments on commit b141ce6

Please sign in to comment.