Skip to content

Commit

Permalink
WIP: instances don't match
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Feb 10, 2023
1 parent 4e15f2f commit c463cf7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions packages/governance/src/contractGovernor.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ const start = async (zcf, privateArgs) => {
});

const publicFacet = Far('contract governor public', {
// BEFOREMERGE is this okay? why not?
...governedPF,
getElectorate: getElectorateInstance,
getGovernedContract: () => governedInstance,
validateVoteCounter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ test.serial('admin price', async t => {
// trigger an aggregation (POLL_INTERVAL=1n in context)
await E(manualTimer).tickN(1);

const paPublicFacet = await E(
E(zoe).getPublicFacet(governedPriceAggregator),
).getGovernedContract();
const paPublicFacet = E(zoe).getPublicFacet(governedPriceAggregator);

const latestRoundSubscriber = await E(paPublicFacet).getRoundStartNotifier();

Expand Down
7 changes: 5 additions & 2 deletions packages/smart-wallet/src/invitations.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ export const makeInvitationsHelper = (
const purseAmount = await E(invitationsPurse).getCurrentAmount();
const invitations = AmountMath.getValue(invitationBrand, purseAmount);

console.log('DEBUG searching invitations', invitations, 'for', instance);

const matches = invitations.filter(
details =>
description === details.description && instance === details.instance,
details => description === details.description,
// FIXME DONOTMERGE instance isn't matching
// && instance === details.instance,
);
if (matches.length === 0) {
// look up diagnostic info
Expand Down

0 comments on commit c463cf7

Please sign in to comment.