Skip to content

Commit 0936d4d

Browse files
author
Oren Sokolowsky
committed
competition test
1 parent c738e3b commit 0936d4d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/proposal-competition.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,12 +644,8 @@ describe('Competition Proposal', () => {
644644

645645
it('CompetionScheme is recognized', async () => {
646646
// we'll get a `ContributionRewardExt` contract that has a Compietion contract as a rewarder
647-
const ARC_VERSION = '0.0.1-rc.43'
648-
const contributionRewardExtContract = arc.getContractInfoByName(`ContributionRewardExt`, ARC_VERSION)
649-
// find the corresponding scheme object
650647
const contributionRewardExts = await arc
651-
.schemes({ where: { address: contributionRewardExtContract.address } }).pipe(first()).toPromise()
652-
expect(contributionRewardExts.length).toEqual(1)
648+
.schemes({ where: { name: `ContributionRewardExt` } }).pipe(first()).toPromise()
653649
const scheme = contributionRewardExts[0]
654650
expect(scheme).toBeInstanceOf(CompetitionScheme)
655651
})

0 commit comments

Comments
 (0)