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

misc refactorings #7131

Merged
merged 2 commits into from
Mar 9, 2023
Merged

misc refactorings #7131

merged 2 commits into from
Mar 9, 2023

Conversation

turadg
Copy link
Member

@turadg turadg commented Mar 8, 2023

Description

Some refactors that had come up

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

@datadog-full-agoric
Copy link

datadog-full-agoric bot commented Mar 8, 2023

Datadog Report

Branch report: ta/appendToStoredArray
Commit report: ca81fc0

agoric-sdk: 0 Failed, 0 New Flaky, 3660 Passed, 57 Skipped, 15m 33.91s Wall Time

Copy link
Member

@erights erights left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@@ -26,6 +26,7 @@ import { makeAuctionBook } from './auctionBook.js';
import { AuctionState } from './util.js';
import { makeScheduler } from './scheduler.js';
import { auctioneerParamTypes } from './params.js';
import { appendToStoredArray } from '@agoric/store/src/stores/store-utils.js';
Copy link
Member

Choose a reason for hiding this comment

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

How about we make it a direct export from @agoric/store and avoid the deep import?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably better but not worth another CI spin imo. I expect we'll clean up deep imports after or as part of refactoring the repo.

@@ -373,7 +373,7 @@ export const parseRatio = (
throw Fail`Invalid numeric data: ${numeric}`;
}

const [whole, part = ''] = [match[1], match[2]];
const [_, whole, part = ''] = match;
Copy link
Member

Choose a reason for hiding this comment

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

Doh! Thx.

@turadg turadg added the automerge:no-update (expert!) Automatically merge without updates label Mar 8, 2023
@mergify mergify bot merged commit 2e33306 into master Mar 9, 2023
@mergify mergify bot deleted the ta/appendToStoredArray branch March 9, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:no-update (expert!) Automatically merge without updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants