Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeclared module in assay.makeUnits doc #47

Closed
DavidBruant opened this issue Nov 1, 2019 · 2 comments · Fixed by #41
Closed

Undeclared module in assay.makeUnits doc #47

DavidBruant opened this issue Nov 1, 2019 · 2 comments · Fixed by #41
Assignees

Comments

@DavidBruant
Copy link
Contributor

https://github.com/Agoric/Documentation/blob/master/main/ertp/api/assay.md#assaymakeunitsextent

import { setup } from '../setupBasicMints';

const { assays: originalAssays, mints, unitOps } = setup();

It's not clear to me where the '../setupBasicMints' module comes from

@katelynsills
Copy link
Contributor

katelynsills commented Nov 1, 2019 via email

@dominiquejane
Copy link
Contributor

Removed the code relating to 'setupBasicMints' and adjusted the example:

// In this scenario, purses are created for two different assays.
// We provide Units, containing an extent, from the Moola and Simolean assays to create the appropriate purses.
const aliceMoolaPurse = moolaMint.mint(moolaAssay.makeUnits(3));
const aliceSimoleanPurse = simoleanMint.mint(simoleanAssay.makeUnits(0));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants