Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Purge Truffle leftovers part 2 - test/ and utils #181

Merged
merged 10 commits into from
Jan 17, 2025

Conversation

zguesmi
Copy link
Member

@zguesmi zguesmi commented Jan 16, 2025

No description provided.

@zguesmi zguesmi mentioned this pull request Jan 16, 2025
@zguesmi zguesmi marked this pull request as ready for review January 16, 2025 12:14
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.50%. Comparing base (5cc4739) to head (55cb59a).
Report is 11 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #181   +/-   ##
========================================
  Coverage    84.50%   84.50%           
========================================
  Files           35       35           
  Lines         1084     1084           
  Branches       221      221           
========================================
  Hits           916      916           
  Misses         168      168           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -19,8 +20,8 @@ import {
OwnableMock,
OwnableMock__factory,
} from '../../../typechain';
import { IexecPoco1 } from '../../../typechain/contracts/modules/interfaces/IexecPoco1.v8.sol';
import { IexecPoco1__factory } from '../../../typechain/factories/contracts/modules/interfaces/IexecPoco1.v8.sol';
import { IexecPoco1 } from '../../../typechain/contracts/modules/interfaces/IexecPoco1.v8.sol/IexecPoco1';
Copy link
Contributor

Choose a reason for hiding this comment

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

what does it change ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can't tell honestly.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe:

import {
    ERC1271Mock,
    ERC1271Mock__factory,
    IERC721__factory,
    IexecInterfaceNative,
    IexecInterfaceNative__factory,
    IexecLibOrders_v5,
    IexecPoco1,
    IexecPoco1__factory,
    IexecPocoAccessors,
    IexecPocoAccessors__factory,
    OwnableMock,
    OwnableMock__factory,
} from '../../../typechain';

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure to understand, here we need the v8 version of the contract IexecPoco1.v8.sol. It cannot be imported directly from the typechain default index.

utils/tools.ts Outdated Show resolved Hide resolved
Base automatically changed from feature/truffle-purging-part1 to develop January 17, 2025 16:03

export function BN2Address(bignumber: BigNumber) {
const lowercaseAddress = ethers.utils.hexZeroPad(bignumber.toHexString(), 20);
return ethers.utils.getAddress(lowercaseAddress);
Copy link

@Le-Caignec Le-Caignec Jan 17, 2025

Choose a reason for hiding this comment

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

utils module disappear in the last version of ethers (v6). We are already on a hold version of hardhat 😵‍💫

Copy link
Member

Choose a reason for hiding this comment

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

Yes, the migration is made of different stages :)

Copy link
Member

@jeremyjams jeremyjams 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!

@@ -19,8 +20,8 @@ import {
OwnableMock,
OwnableMock__factory,
} from '../../../typechain';
import { IexecPoco1 } from '../../../typechain/contracts/modules/interfaces/IexecPoco1.v8.sol';
import { IexecPoco1__factory } from '../../../typechain/factories/contracts/modules/interfaces/IexecPoco1.v8.sol';
import { IexecPoco1 } from '../../../typechain/contracts/modules/interfaces/IexecPoco1.v8.sol/IexecPoco1';
Copy link
Member

Choose a reason for hiding this comment

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

Maybe:

import {
    ERC1271Mock,
    ERC1271Mock__factory,
    IERC721__factory,
    IexecInterfaceNative,
    IexecInterfaceNative__factory,
    IexecLibOrders_v5,
    IexecPoco1,
    IexecPoco1__factory,
    IexecPocoAccessors,
    IexecPocoAccessors__factory,
    OwnableMock,
    OwnableMock__factory,
} from '../../../typechain';

@zguesmi zguesmi merged commit 46b53f5 into develop Jan 17, 2025
4 checks passed
@zguesmi zguesmi deleted the feature/truffle-purging branch January 17, 2025 16:58
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