Skip to content

Commit

Permalink
style(smart-wallet): backported code conforms to newer coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Sep 8, 2023
1 parent 91d3644 commit 41915e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/smart-wallet/src/smartWallet.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// backported types are out of sync
// @ts-nocheck
import {
AmountShape,
BrandShape,
Expand Down Expand Up @@ -666,7 +668,7 @@ export const prepareSmartWallet = (baggage, shared) => {
* Umarshals the actionCapData and delegates to the appropriate action handler.
*
* @param {import('@endo/marshal').CapData<string>} actionCapData of type BridgeAction
* @param {boolean} [canSpend=false]
* @param {boolean} [canSpend]
* @returns {Promise<void>}
*/
handleBridgeAction(actionCapData, canSpend = false) {
Expand Down
2 changes: 2 additions & 0 deletions packages/smart-wallet/test/test-addAsset.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* backported code conforms to newer coding standards */
/* eslint-disable no-await-in-loop */
// @ts-check
import { test as anyTest } from '@agoric/zoe/tools/prepare-test-env-ava.js';
import { E, Far } from '@endo/far';
Expand Down
2 changes: 1 addition & 1 deletion packages/vats/tools/board-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const makeHistoryReviver = (entries, slotToVal = undefined) => {
const vsMap = new Map(entries);
const fromCapData = (...args) =>
Reflect.apply(board.fromCapData, board, args);
const getItem = key => unmarshalFromVstorage(vsMap, key, fromCapData);
const getItem = key => unmarshalFromVstorage(vsMap, key, fromCapData, -1);
const children = prefix => {
prefix.endsWith('.') || Fail`prefix must end with '.'`;
return harden([
Expand Down

0 comments on commit 41915e7

Please sign in to comment.