Error while running core-eval to execute a null upgrade: The 'governedParams' term must be an object like Electorate … #10423
Replies: 2 comments 1 reply
-
The error term must be an object like "Electorate" is usually due to not providing a fresh invitation. I improved that error message when upgrading vaults.
The original |
Beta Was this translation helpful? Give feedback.
-
You are correct. I was mis-reading it. Hmm. This contract doesn't use paramGovernance. (It does have API governance, of a sort.) But there's nothing here that would respond to In fact, nothing here imports As I recall from upgrading |
Beta Was this translation helpful? Give feedback.
-
Description
While running a core eval to execute a null upgrade to the KREAd contract, the chain logs display the error below.
I am failing to pinpoint where and why the error is being triggered, but my debug attempt can be seen in the section Additional Context.
Note that before the error is triggered, we can see the message that
vat v54 upgraded from incarnation 0 to 1
, but later it loggedkernel: kernel terminating vat v54 (failure=true)
.Error message:
The complete log history can be seen below.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The core-eval should be properly executed and the KREAd vat incarnation should have increased from 0 to 1.
Platform Environment
Additional context
At the core-eval builder I am fetching the
kreadKitP
and thekreadCommitteeCreatorFacet
, both available at the bootstrap powers.The kreadKitP hold the
privateArgs
used to initiate the contract and through the kreadCommitteeCreatorFacet I get a newinitialPoserInvitation
to include in the privateArgs argument passed toupgradeContract
.The
bundleID
passed can be confirmed at the KREAd Agoric Mainnet release, more specifically at the start-kread.js. The same bundleID can be seen being used at the agoric-3-proposals 53:kread-start.The initialPoserInvitation is then used by KREAd contract as an argument for
handleParamGovernance
const { makeDurableGovernorFacet } = handleParamGovernance( zcf, privateArgs.initialPoserInvitation, {}, );
The error message present on the chain logs point us to
/governance/src/contractHelper.js:44
which regards the validateElectorate function ofcontractHelper
. This function is called during the execution offacetHelpers
function, which is the return value ofhandleParamGovernance
.I noticed that the KREAd contract did not provided the
storageNode
andmarshaller
to handleParamGovernance, and that may resulted in a faultyparamManager
object and consequently an unexpected behavior atvalidateElectorate
due to:const invitation = paramManager.getInternalParamValue(CONTRACT_ELECTORATE)
.Although I am not certain of my suspicion, due to the fact that this problem was not raised when the contract was first initiated, and the fact that no other issue was triggered during the execution of
makeParamManagerFromTerms
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions