Skip to content

Commit

Permalink
fixup! feat: introduce auctioneer to econCommitteeCharter
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 4, 2023
1 parent 944b198 commit 3768d44
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions packages/vats/test/bootstrapTests/test-vaults-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,25 +296,22 @@ test('propose change to auction governance param', async t => {
const wd = await walletFactoryDriver.provideSmartWallet(gov1);

t.log('accept charter invitation');
{
const instance = agoricNamesRemotes.instance.econCommitteeCharter;

await wd.executeOffer({
id: 'accept-charter-invitation',
invitationSpec: {
source: 'purse',
instance,
description: 'charter member invitation',
},
proposal: {},
});
const charter = agoricNamesRemotes.instance.econCommitteeCharter;

await eventLoopIteration();
await wd.executeOffer({
id: 'accept-charter-invitation',
invitationSpec: {
source: 'purse',
instance: charter,
description: 'charter member invitation',
},
proposal: {},
});

t.like(wd.getLatestUpdateRecord(), { status: { numWantsSatisfied: 1 } });
}
await eventLoopIteration();
t.like(wd.getLatestUpdateRecord(), { status: { numWantsSatisfied: 1 } });

const instance = agoricNamesRemotes.instance.auctioneer;
const auctioneer = agoricNamesRemotes.instance.auctioneer;
const timerBrand = agoricNamesRemotes.brand.timer;
assert(timerBrand);

Expand All @@ -328,7 +325,7 @@ test('propose change to auction governance param', async t => {
const offerArgs = {
deadline: 1000n,
params,
instance,
instance: auctioneer,
path: { paramPath: { key: 'governedParams' } },
};

Expand All @@ -344,7 +341,6 @@ test('propose change to auction governance param', async t => {
});

await eventLoopIteration();

t.like(wd.getLatestUpdateRecord(), { status: { numWantsSatisfied: 1 } });

const key = `published.committees.Economic_Committee.latestQuestion`;
Expand Down

0 comments on commit 3768d44

Please sign in to comment.