Skip to content

Conversation

gfournieriExec
Copy link
Contributor

No description provided.

@gfournieriExec gfournieriExec self-assigned this Dec 9, 2024
@gfournieriExec gfournieriExec changed the base branch from develop to feature/migrate-200-IT December 10, 2024 09:16
Base automatically changed from feature/migrate-200-IT to develop December 10, 2024 09:42
@gfournieriExec gfournieriExec requested a review from a team December 10, 2024 09:43
@gfournieriExec gfournieriExec marked this pull request as ready for review December 10, 2024 09:43
[
expectedProxyBalanceChange, // Proxy
-taskPrice * completedTasks, // Requester
0, // Requester
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

workerStakePerTask
);
expect(finalizeTx).to.changeTokenBalances(
await expect(finalizeTx).to.changeTokenBalances(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zguesmi
Copy link
Member

zguesmi commented Dec 10, 2024

I suggest to use a clearer name for the PR:
e.g. "Fix balance checks in integration tests"

@gfournieriExec gfournieriExec changed the title fix math on IT 000 Fix balance checks in integration tests Dec 10, 2024
.then((tx) => tx.wait());
return await extractRegistryEntryAddress(workerpoolReceipt, workerpoolRegistry.address);
}
async getInitialFrozens(accounts: SignerWithAddress[]) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async getInitialFrozens(accounts: SignerWithAddress[]) {
async getInitialFrozens(accounts: SignerWithAddress[]) {

Comment on lines 472 to 475
await IexecInterfaceNative__factory.connect(
this.proxyAddress,
ethers.provider,
).frozenOf(this.proxyAddress)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create one iexecPoco instance inside the function and re-use it.

Comment on lines 499 to 502
await IexecInterfaceNative__factory.connect(
this.proxyAddress,
ethers.provider,
).frozenOf(accountsInitialFrozens[i].address)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing, create one instance outside of the for loop.

@gfournieriExec gfournieriExec merged commit d42f9e9 into develop Dec 10, 2024
1 check passed
@gfournieriExec gfournieriExec deleted the fix/fullchain-IT-maths branch December 10, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants