Skip to content

Conversation

zguesmi
Copy link
Member

@zguesmi zguesmi commented Feb 18, 2025

Next PR:

  • Run native tests on CI.
  • Replace the script scripts/test/run-native-tests.sh.

@zguesmi zguesmi changed the title Feature/iexec escrow migr to ethers v6 Migrate escrow tests to Ethers v6 Feb 18, 2025
@zguesmi zguesmi self-assigned this Feb 18, 2025
Comment on lines -191 to -198
await expect(iexecPocoAsAccountA.depositForArray(...depositForArrayArgs))
.to.changeTokenBalances(
rlcInstance,
[accountA, iexecPoco],
[-depositTotalAmount, depositTotalAmount],
)
const tx = iexecPocoAsAccountA.depositForArray(...depositForArrayArgs);
await expect(tx).to.changeTokenBalances(
rlcInstance,
[accountA, iexecPoco],
[-depositTotalAmount, depositTotalAmount],
);
await expect(tx)
.to.emit(rlcInstance, 'Transfer')
.withArgs(accountA.address, iexecPoco, depositTotalAmount)
Copy link
Member Author

@zguesmi zguesmi Feb 18, 2025

Choose a reason for hiding this comment

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

This assertion is incorrect because there is never a transfer with the full depositTotalAmount. The check was not being executed because it's chained to to.changeTokenBalances(). It's fixed in this PR.

@zguesmi zguesmi marked this pull request as ready for review February 19, 2025 10:54
Copy link
Contributor

@james-toussaint james-toussaint left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Contributor

@Le-Caignec Le-Caignec left a comment

Choose a reason for hiding this comment

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

some comments

CHANGELOG.md Outdated
- Deployment scripts (#187)
- Tests
- IexecEscrow (#199)
- ENSIntegration, IexecOrderManagement, IexecRelay (#195)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- ENSIntegration, IexecOrderManagement, IexecRelay (#195)
- ENSIntegration, IexecOrderManagement, IexecRelay (#195, #199)

CHANGELOG.md Outdated
- Tests
- IexecEscrow (#199)
- ENSIntegration, IexecOrderManagement, IexecRelay (#195)
- IexecCategoryManager, IexecERC20 (#192)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- IexecCategoryManager, IexecERC20 (#192)
- IexecCategoryManager, IexecERC20 (#192, #199)

CHANGELOG.md Outdated
- IexecCategoryManager, IexecERC20 (#192)
- test/*fullchain* (#190)
- IexecAccessors (#189, #191)
- IexecAccessors, IexecMaintenance (#189, #191)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- IexecAccessors, IexecMaintenance (#189, #191)
- IexecAccessors, IexecMaintenance (#189, #191, #199)

Comment on lines +5 to +12
export async function hashDomain(domain: IexecLibOrders_v5.EIP712DomainStructOutput) {
return ethers.TypedDataEncoder.hashDomain({
name: domain.name,
version: domain.version,
chainId: domain.chainId,
verifyingContract: domain.verifyingContract,
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we can remove buildDomain function if we have that

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

package.json Outdated
"sol2uml": "After 2.5.19, see https://github.com/naddison36/sol2uml/issues/183"
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

EOF

*
* Note: sending ETH to address(0) does not increment its balance.
*/
export async function setZeroAddressBalance(amount: bigint) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Set 10n input by default ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@zguesmi zguesmi merged commit 7f94a5e into feature/migration-to-ether-v6 Feb 20, 2025
1 check passed
@zguesmi zguesmi deleted the feature/iexec-escrow-migr-to-ethers-v6 branch February 20, 2025 13:09
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.

4 participants