From 19faa9ba6b7a80590ea4c23173d5aeedd45f891e Mon Sep 17 00:00:00 2001 From: arthurgousset <46296830+arthurgousset@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:03:43 +0100 Subject: [PATCH] fix(test-sol/integration): add contract name back into `for`-loop --- packages/protocol/test-sol/integration/Integration.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/protocol/test-sol/integration/Integration.t.sol b/packages/protocol/test-sol/integration/Integration.t.sol index 03065fc3df8..04bb161f05b 100644 --- a/packages/protocol/test-sol/integration/Integration.t.sol +++ b/packages/protocol/test-sol/integration/Integration.t.sol @@ -30,7 +30,6 @@ contract RegistryIntegrationTest is IntegrationTest, Utils, Constants { function test_shouldHaveCorrectBytecode() public { // Converting contract names to hashes for comparison - bytes32 hashContractName = keccak256(abi.encodePacked(contractName)); bytes32 hashAccount = keccak256(abi.encodePacked("Accounts")); bytes32 hashElection = keccak256(abi.encodePacked("Election")); bytes32 hashEscrow = keccak256(abi.encodePacked("Escrow")); @@ -47,6 +46,7 @@ contract RegistryIntegrationTest is IntegrationTest, Utils, Constants { // Skipping test for contracts that depend on linked libraries // This is a known limitation in Foundry at the moment: // Source: https://github.com/foundry-rs/foundry/issues/6120 + bytes32 hashContractName = keccak256(abi.encodePacked(contractName)); if ( hashContractName != hashAccount && hashContractName != hashElection &&