Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
- Tests
- IexecEscrow (#199)
- ENSIntegration, IexecOrderManagement, IexecRelay (#195, #199)
- IexecCategoryManager, IexecERC20 (#192, #199)
- IexecCategoryManager, IexecERC20 (#192, #199, #202)
- test/*fullchain* (#190, #196)
- IexecAccessors, IexecMaintenance (#189, #191, #199)
- IexecPoco (#196)
- `trust` specific field (#201)
- IexecPocoBoost (#198)
- fixed a minor issue in BigInt for IexecWrapper (#202).
- Migrate scripts to TypeScript: (#184)
- `getFunctionSignatures.js`, `common-test-snapshot.js`, `test-storage.js`, `timelock.js`
- Migrated utility files to TypeScript : (#183)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ describe('CategoryManager', async () => {
});

it('Should not view category with bad index', async () => {
const lastCategoryIndex = Number(await iexecPocoAsAnyone.countCategory()) - 1;
const lastCategoryIndex = (await iexecPocoAsAnyone.countCategory()) - 1n;
await expect(
iexecPocoAsAnyone.viewCategory(lastCategoryIndex + 1),
iexecPocoAsAnyone.viewCategory(lastCategoryIndex + 1n),
).to.be.revertedWithoutReason();
});

Expand Down
10 changes: 4 additions & 6 deletions test/utils/IexecWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,10 @@ export class IexecWrapper {
* @returns value of the reward
*/
async getSchedulerRewardRatio(workerpoolAddress: string) {
return Number(
await Workerpool__factory.connect(
workerpoolAddress,
this.accounts.anyone,
).m_schedulerRewardRatioPolicy(),
);
return await Workerpool__factory.connect(
workerpoolAddress,
this.accounts.anyone,
).m_schedulerRewardRatioPolicy();
}

/**
Expand Down