Skip to content

Commit

Permalink
chore: clean up docs and stray logging
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Sep 14, 2022
1 parent 195058f commit 99b9e1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions packages/casting/src/iterable.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ export const iterateEach = (follower, options) =>
});

/**
* TODO: Remove this function when we have `makePublisherKit`.
*
* @template T
* @param {ERef<import('./types.js').Follower<T>>} follower
* @param {import('./types.js').IterateEachOptions} [options]
Expand Down
1 change: 0 additions & 1 deletion packages/wallet/ui/src/components/Proposal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ const sortedEntries = entries =>
Object.entries(entries).sort(([kwa], [kwb]) => cmp(kwa, kwb));

const Proposal = ({ offer, purses }) => {
console.log('offer', offer);
const {
proposalForDisplay,
proposalTemplate,
Expand Down
6 changes: 2 additions & 4 deletions packages/wallet/ui/src/util/WalletBackendAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,10 @@ export const makeWalletBridgeFromFollower = (
const purses = [];
for (const [brand, purse] of brandToPurse.entries()) {
if (purse.currentAmount && purse.brandPetname) {
console.log(purse.currentAmount);
pursePetnameToBrand.set(purse.pursePetname, brand);
purses.push(purse);
}
}
// console.log(purses);
notifierKits.purses.updater.updateState(harden(purses));
};

Expand All @@ -158,7 +156,6 @@ export const makeWalletBridgeFromFollower = (
for await (const { value } of iterateEach(follower, {
height: firstHeight,
})) {
console.log(value);
/** @type {import('@agoric/smart-wallet/src/smartWallet').UpdateRecord} */
const updateRecord = value;
if (firstCallback) {
Expand All @@ -183,7 +180,8 @@ export const makeWalletBridgeFromFollower = (
break;
}
case 'balance': {
// FIXME: We assume just one purse per brand.
// TODO: Don't assume just one purse per brand.
// https://github.com/Agoric/agoric-sdk/issues/6126
const { currentAmount } = updateRecord;
const purseObj = {
...brandToPurse.get(currentAmount.brand),
Expand Down

0 comments on commit 99b9e1f

Please sign in to comment.