Skip to content

Commit

Permalink
fix(lint): offer-up.contract.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mujahidkay committed Sep 13, 2024
1 parent 3aca84b commit 07b1830
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contract/src/offer-up.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ import { AmountShape } from '@agoric/ertp/src/typeGuards.js';
import { atomicRearrange } from '@agoric/zoe/src/contractSupport/atomicTransfer.js';
import '@agoric/zoe/exported.js';

/**
* @import {Amount} from '@agoric/ertp/src/types.js';
* @import {CopyBag} from '@endo/patterns';
*
*/
const { Fail, quote: q } = assert;

// #region bag utilities
/** @type { (xs: bigint[]) => bigint } */
const sum = xs => xs.reduce((acc, x) => acc + x, 0n);

/**
* @param {import('@endo/patterns').CopyBag} bag
* @param {CopyBag} bag
* @returns {bigint[]}
*/
const bagCounts = bag => {
Expand Down

0 comments on commit 07b1830

Please sign in to comment.