From f231b9d18320ff563120bf247c40b82742aedb3a Mon Sep 17 00:00:00 2001 From: Zied <26070035+zguesmi@users.noreply.github.com> Date: Fri, 8 Nov 2024 17:09:30 +0100 Subject: [PATCH] Rename function --- test/byContract/IexecPoco/IexecPoco1.test.ts | 4 ++-- test/utils/IexecWrapper.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/byContract/IexecPoco/IexecPoco1.test.ts b/test/byContract/IexecPoco/IexecPoco1.test.ts index dff7df09..394293ed 100644 --- a/test/byContract/IexecPoco/IexecPoco1.test.ts +++ b/test/byContract/IexecPoco/IexecPoco1.test.ts @@ -380,7 +380,7 @@ describe('IexecPoco1', () => { workerpoolPrice, ); const schedulerRewardRatioPerTask = - await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress); + await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress); // Deposit required amounts. await iexecWrapper.depositInIexecAccount(requester, dealPrice); await iexecWrapper.depositInIexecAccount(scheduler, schedulerStake); @@ -505,7 +505,7 @@ describe('IexecPoco1', () => { await iexecWrapper.computeWorkerTaskStake(workerpoolAddress, workerpoolPrice), ); expect(deal.schedulerRewardRatio).to.equal( - await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress), + await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress), ); expect(deal.sponsor).to.equal(requester.address); }); diff --git a/test/utils/IexecWrapper.ts b/test/utils/IexecWrapper.ts index 3bf20295..1db509b0 100644 --- a/test/utils/IexecWrapper.ts +++ b/test/utils/IexecWrapper.ts @@ -142,7 +142,7 @@ export class IexecWrapper { * @param workerpoolAddress address of the workerpool * @returns value of the reward */ - async getSchedulerRewardRatioPerTask(workerpoolAddress: string) { + async getSchedulerRewardRatio(workerpoolAddress: string) { return ( await Workerpool__factory.connect( workerpoolAddress,