Skip to content

Commit 417d49d

Browse files
committed
Update hardhat-viem tests
1 parent d4321c5 commit 417d49d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

v-next/hardhat-viem/test/contracts.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ describe("contracts", () => {
383383
contractName: "OnlyNormalLib",
384384
error:
385385
"The following libraries are missing:\n" +
386-
'\t* "contracts/WithLibs.sol:NormalLib"\n' +
386+
'\t* "project/contracts/WithLibs.sol:NormalLib"\n' +
387387
"\n" +
388388
"Please provide all the required libraries.",
389389
},
@@ -461,8 +461,8 @@ describe("contracts", () => {
461461
error:
462462
"The following libraries may resolve to multiple libraries:\n" +
463463
'\t* "ConstructorLib":\n' +
464-
'\t\t* "contracts/ConstructorLib.sol:ConstructorLib"\n' +
465-
'\t\t* "contracts/WithLibs.sol:ConstructorLib"\n' +
464+
'\t\t* "project/contracts/ConstructorLib.sol:ConstructorLib"\n' +
465+
'\t\t* "project/contracts/WithLibs.sol:ConstructorLib"\n' +
466466
"\n" +
467467
"Please provide the fully qualified name for these libraries.",
468468
},
@@ -484,8 +484,8 @@ describe("contracts", () => {
484484
error:
485485
"The following libraries may resolve to multiple libraries:\n" +
486486
'\t* "ConstructorLib":\n' +
487-
'\t\t* "contracts/ConstructorLib.sol:ConstructorLib"\n' +
488-
'\t\t* "contracts/WithLibs.sol:ConstructorLib"\n' +
487+
'\t\t* "project/contracts/ConstructorLib.sol:ConstructorLib"\n' +
488+
'\t\t* "project/contracts/WithLibs.sol:ConstructorLib"\n' +
489489
"\n" +
490490
"Please provide the fully qualified name for these libraries.",
491491
},
@@ -498,9 +498,9 @@ describe("contracts", () => {
498498
[2n],
499499
{
500500
libraries: {
501-
"contracts/ConstructorLib.sol:ConstructorLib":
501+
"project/contracts/ConstructorLib.sol:ConstructorLib":
502502
constructorLibConstructorLibContract.address,
503-
"contracts/WithLibs.sol:ConstructorLib":
503+
"project/contracts/WithLibs.sol:ConstructorLib":
504504
withLibsConstructorLibContract.address,
505505
},
506506
},
@@ -523,7 +523,7 @@ describe("contracts", () => {
523523
networkConnection.viem.deployContract("OnlyConstructorLib", [1n], {
524524
libraries: {
525525
ConstructorLib: constructorLibContract.address,
526-
"contracts/WithLibs.sol:ConstructorLib":
526+
"project/contracts/WithLibs.sol:ConstructorLib":
527527
constructorLibContract.address,
528528
},
529529
}),
@@ -532,7 +532,7 @@ describe("contracts", () => {
532532
contractName: "OnlyConstructorLib",
533533
error:
534534
"The following libraries are provided more than once:\n" +
535-
'\t* "contracts/WithLibs.sol:ConstructorLib"\n' +
535+
'\t* "project/contracts/WithLibs.sol:ConstructorLib"\n' +
536536
"\n" +
537537
"Please ensure that each library is provided only once, either by its name or its fully qualified name.",
538538
},

0 commit comments

Comments
 (0)