Skip to content

Commit

Permalink
refactor: clean-ups in proposals
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Feb 7, 2025
1 parent 5576d7e commit d628279
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/builders/scripts/vats/upgrade-bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
export default async (homeP, endowments) => {
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
await writeCoreProposal('upgrade-bank', defaultProposalBuilder);
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('upgrade-bank', defaultProposalBuilder);
};
4 changes: 2 additions & 2 deletions packages/builders/scripts/vats/upgrade-psm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>

/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
export default async (homeP, endowments) => {
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
await writeCoreProposal('upgrade-psm', defaultProposalBuilder);
const { writeCoreEval } = await makeHelpers(homeP, endowments);
await writeCoreEval('upgrade-psm', defaultProposalBuilder);
};
3 changes: 2 additions & 1 deletion packages/vats/src/proposals/upgrade-psm-proposal.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const upgradePSMProposal = async (
trace('Done.');
};

export const getManifestForUpgradingPSM = (_powers, { psmRef }) => ({
export const getManifestForUpgradingPSM = ({ restoreRef }, { psmRef }) => ({
manifest: {
[upgradePSMProposal.name]: {
consume: {
Expand All @@ -71,4 +71,5 @@ export const getManifestForUpgradingPSM = (_powers, { psmRef }) => ({
},
},
options: { psmRef },
installations: { psm: restoreRef(psmRef) },
});

0 comments on commit d628279

Please sign in to comment.