-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
@@ -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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does it change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't tell honestly.
There was a problem hiding this comment.
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';
There was a problem hiding this comment.
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.
Co-authored-by: gfournieriExec <[email protected]>
|
||
export function BN2Address(bignumber: BigNumber) { | ||
const lowercaseAddress = ethers.utils.hexZeroPad(bignumber.toHexString(), 20); | ||
return ethers.utils.getAddress(lowercaseAddress); |
There was a problem hiding this comment.
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 😵💫
There was a problem hiding this comment.
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 :)
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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';
No description provided.