Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

AmountMath rename, jsdoc type fix, extra await #21

Merged
merged 3 commits into from
May 24, 2021
Merged

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented May 21, 2021

While going through the faucet as part of following the Starting a project guide, I noticed a few issues, fixed in this PR:

  • amountMath is deprecated and replaced by AmountMath. This was renamed throughout in agoric-sdk but not in this repo.
  • bundleSource is async and returns a Promise. It was awaited correctly but VS code was complaining about unnecessary await.
  • mintPayment wasn't typed so VS Code couldn't provide code hinting for the seat argument.
  • A couple await are unnecessary in the test files:
    • zoe.startInstance() accepts ERef<Installation> (I'm hoping in the future we can automatically pipeline this usage)
    • seat is only used with E() so awaiting would prevent pipelining.

@mhofman mhofman requested a review from katelynsills May 21, 2021 21:33
@mhofman
Copy link
Member Author

mhofman commented May 21, 2021

@warner looks like the Node 12 drop broke the faucet tests.

Copy link
Contributor

@katelynsills katelynsills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thanks!

@mhofman mhofman force-pushed the mhofman/spinup-fixes branch from 6600476 to ceefd5e Compare May 24, 2021 18:31
@mhofman mhofman merged commit 318e445 into main May 24, 2021
@mhofman mhofman deleted the mhofman/spinup-fixes branch May 24, 2021 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants