Skip to content

Conversation

@sashaodessa
Copy link

Description

This PR removes outdated legacy tests and functions that were used to verify compatibility between the old address format and the new bytes32 format during the SpokePool upgrade. Since the migration to bytes32 format has been completed, these compatibility checks are no longer needed.

Changes Made

  • Removed legacy test from SpokePool.Relay.ts that verified relay hash compatibility between address and bytes32 formats
  • Removed legacy test from MerkleLib.Proofs.ts that verified Merkle leaf compatibility between address and bytes32 formats
  • Removed legacy function getLegacyV3RelayHash from SpokePool.Fixture.ts that was used for address-format relay hashing
  • Cleaned up unused imports (getLegacyV3RelayHash, bytes32ToAddress) that are no longer needed

Why This Change

The SpokePool contracts have already been upgraded to use the new bytes32 format with AddressConverters library. The legacy compatibility tests were marked with @todo comments indicating they could be removed after the upgrade, which has now been completed.

This cleanup removes ~60 lines of dead code and eliminates misleading TODO comments that referenced a completed migration.

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.

1 participant