-
Notifications
You must be signed in to change notification settings - Fork 208
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
use readPublished for types in agoric-cli #10450
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
@@ -98,13 +98,13 @@ export const makeGovCommand = (_logger, io = {}) => { | |||
optUtils, | |||
) { | |||
const utils = await (optUtils || makeVstorageKit({ fetch }, networkConfig)); | |||
const { agoricNames, readLatestHead } = utils; | |||
const { agoricNames, readPublished } = utils; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we just pass the utils
object instead of de- and re-structuring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No strong feelings, as long as the callees are clear about the least authority they need (using Pick<...>
perhaps).
My vague memory is that I tried out several different ways to organize this stuff and either didn't find anything that I particularly liked or at least didn't go back to make things uniform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This way is done so I'll leave any other iterations to a future refactoring.
follow-up
Description
Pulled out of #10422 while debugging an intermittent Docker integration failure.
Security Considerations
none
Scaling Considerations
none
Documentation Considerations
none
Testing Considerations
CI
Upgrade Considerations
none