Skip to content

Commit

Permalink
fix: review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 22, 2022
1 parent 17a1acc commit 38480a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ERTP/src/purse.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import { defineKind } from '@agoric/swingset-vat/src/storeModule.js';
import { AmountMath } from './amountMath.js';

export const makePurseMaker = (allegedName, assetKind, brand, purseMethods) => {
// - This kind is a pair of purse and depositFacet that have a 1:1
// correspondence.
// - They are virtualized together to share a single state record.
// - An alternative design considered was to have this return a Purse alone
// that created depositFacet as needed. But this approach ensures a constant
// identity for the facet and exercises the multi-faceted object style.
const makePurseKit = defineKind(
allegedName,
() => {
Expand Down

0 comments on commit 38480a2

Please sign in to comment.