handle replacing installations in writeCoreEval #10172
Labels
cosmic-swingset
package: cosmic-swingset
deployment
Chain deployment mechanism (e.g. testnet)
devex
developer experience
enhancement
New feature or request
What is the Problem Being Solved?
The
myContractRef: publishRef(install(...))
idiom works fine for initial deployment of installations. You might think it would work to replace installations. But in recent experience, it does not, and lack of.reset()
in the code below strongly suggests why the limitation.agoric-sdk/packages/deploy-script-support/src/coreProposalBehavior.js
Lines 168 to 170 in 442f07c
Description of the Design
Add
.reset()
.Security Considerations
Should improve security by matching behavior better with developer expectations.
Could be a risk if any code is currently relying on the
.resolve()
being a no-op.Scaling Considerations
N/A
Test Plan
A bootstrap test should suffice:
cc @Chris-Hibbert
Upgrade Considerations
The
coreProposalBehavior.js
code is copied into each deployment, so there's no need to upgrade previous deployments.Could be a risk if any code is currently relying on the
.resolve()
being a no-op.The text was updated successfully, but these errors were encountered: