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

feat(synthetic-chain): add proposal upgradeInfo support #63

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

mhofman
Copy link
Member

@mhofman mhofman commented Jan 13, 2024

Plumbing of UPGRADE_INFO seem to have disappeared with synthetic-chain. This adds the capability back.

Manually tested in agoric-sdk with a core proposal installing the network vat on top of Agoric/agoric-sdk#8747

Released as 0.0.3

@mhofman mhofman requested a review from turadg January 13, 2024 00:55
@@ -42,6 +43,10 @@ function readInfo(proposalPath: string): ProposalInfo {
};
}

export function encodeUpgradeInfo(upgradeInfo: unknown): string {
return upgradeInfo != null ? JSON.stringify(upgradeInfo) : '';
Copy link
Member

Choose a reason for hiding this comment

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

Nit: swap the expressions so the condition isn't negated, or better yet no ternary

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I forgot about this before publishing.

@mhofman mhofman enabled auto-merge January 15, 2024 14:07
@mhofman mhofman merged commit 472dfb9 into main Jan 15, 2024
3 checks passed
@mhofman mhofman deleted the mhofman/upgrade-info branch January 15, 2024 14:56
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.

2 participants