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

refactor(treasury): Convert RESM to NESM #3645

Merged
merged 2 commits into from
Aug 12, 2021
Merged

refactor(treasury): Convert RESM to NESM #3645

merged 2 commits into from
Aug 12, 2021

Conversation

kriskowal
Copy link
Member

Refs #527

@kriskowal kriskowal changed the base branch from master to 527-stat-logger August 10, 2021 03:30
@katelynsills
Copy link
Contributor

I think @Chris-Hibbert is better suited for this review.

@katelynsills katelynsills requested review from Chris-Hibbert and removed request for katelynsills August 10, 2021 18:33

async function writeSourceBundle(contractFilename, outputPath) {
const path = require.resolve(contractFilename);
const path = new URL(await importMetaResolve(contractFilename, import.meta.url)).pathname;
Copy link
Contributor

Choose a reason for hiding this comment

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

eslint should be asking for a line break here. If it doesn't insist, we should break anyway for consistency.

Also there's a non-top-level await embedded here.

@@ -28,7 +34,7 @@ const makeInstall = async (root, zoe) => {

test('bootstrap payment', async t => {
const zoe = makeZoe(fakeVatAdmin);
const autoswapInstall = await makeInstall(autoswapRoot, zoe);
const autoswapInstall = await makeInstall(await autoswapRoot, zoe);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a non-top-level await. Is that going to be allowed? Can we put the await inside makeInstall() instead?

@@ -46,7 +46,8 @@ trace('makeZoe');
* @param {string} sourceRoot
*/
async function launch(zoeP, sourceRoot) {
const contractBundle = await bundleSource(require.resolve(sourceRoot));
const contractPath = new URL(await importMetaResolve(sourceRoot, import.meta.url)).pathname;
Copy link
Contributor

Choose a reason for hiding this comment

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

await is not top-level here.

Copy link
Contributor

@Chris-Hibbert Chris-Hibbert left a comment

Choose a reason for hiding this comment

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

LGTM!

Base automatically changed from 527-stat-logger to master August 12, 2021 01:24
@kriskowal kriskowal merged commit c5cd2c2 into master Aug 12, 2021
@kriskowal kriskowal deleted the 527-treasury branch August 12, 2021 01:25
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 this pull request may close these issues.

3 participants