diff --git a/test/factory/ZoraCreator1155Factory.t.sol b/test/factory/ZoraCreator1155Factory.t.sol index a7ce10ea4..c1d4fca2b 100644 --- a/test/factory/ZoraCreator1155Factory.t.sol +++ b/test/factory/ZoraCreator1155Factory.t.sol @@ -47,7 +47,8 @@ contract ZoraCreator1155FactoryTest is Test { } function test_contractVersion() external { - assertEq(factory.contractVersion(), "2.0.0"); + string memory package = vm.readFile("./package.json"); + assertEq(package.readString(".version"), factory.contractVersion()); } function test_contractName() external { diff --git a/test/nft/ZoraCreator1155.t.sol b/test/nft/ZoraCreator1155.t.sol index 29eb54e5d..eac8816c4 100644 --- a/test/nft/ZoraCreator1155.t.sol +++ b/test/nft/ZoraCreator1155.t.sol @@ -189,7 +189,8 @@ contract ZoraCreator1155Test is Test { function test_contractVersion() external { init(); - assertEq(target.contractVersion(), "2.0.0"); + string memory package = vm.readFile("./package.json"); + assertEq(package.readString(".version"), target.contractVersion()); } function test_assumeLastTokenIdMatches() external {