Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
Commit fb87157 manually merged (more ICT CERTF checks)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkonst committed Nov 1, 2020
1 parent e0f5ed8 commit dbbcca0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/protocol/test/ICT/TestICTCERTF.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ describe('ICT', function () {

// settle and progress asset state
await mineBlock(await computeEventTime(scheduleTime));
await this.CERTFActorInstance.methods.progress(
const { events } = await this.CERTFActorInstance.methods.progress(
web3.utils.toHex(this.assetId)
).send({ from: owner });
expectEvent(events, 'ProgressedAsset', { 'eventType': `${eventIndex('ISS')}` });
});

it('should register investor1 for redemption for the first REF event [ @skip-on-coverage ]', async () => {
Expand Down Expand Up @@ -165,8 +166,9 @@ describe('ICT', function () {

// settle and progress asset state
await mineBlock(await computeEventTime(scheduleTime));
await this.CERTFActorInstance.methods.progress(web3.utils.toHex(this.assetId))
const { events } = await this.CERTFActorInstance.methods.progress(web3.utils.toHex(this.assetId))
.send({ from: owner });
expectEvent(events, 'ProgressedAsset', { 'eventType': `${eventIndex('REF')}` });
await this.CERTFRegistryInstance.methods.getState(web3.utils.toHex(this.assetId)).call();
});

Expand All @@ -178,9 +180,10 @@ describe('ICT', function () {

// settle and progress asset state
await mineBlock(await computeEventTime(scheduleTime));
await this.CERTFActorInstance.methods.progress(
const { events } = await this.CERTFActorInstance.methods.progress(
web3.utils.toHex(this.assetId)
).send({ from: owner });
expectEvent(events, 'ProgressedAsset', { 'eventType': `${eventIndex('EXE')}` });
});

it('should process the first REP event [ @skip-on-coverage ]', async () => {
Expand All @@ -198,9 +201,10 @@ describe('ICT', function () {

// settle and progress asset state
await mineBlock(await computeEventTime(scheduleTime));
await this.CERTFActorInstance.methods.progress(web3.utils.toHex(
const { events } = await this.CERTFActorInstance.methods.progress(web3.utils.toHex(
this.assetId)
).send({ from: owner });
expectEvent(events, 'ProgressedAsset', { 'eventType': `${eventIndex('REP')}` });
await this.ict.methods.fetchDepositAmountForEvent(this.schedule[1]).send({ from: owner });

const deposit = await this.ict.methods.getDeposit(this.schedule[1]).call();
Expand Down

0 comments on commit dbbcca0

Please sign in to comment.