Skip to content

Commit

Permalink
fix: [M01] add comment documenting that this contract will not protec…
Browse files Browse the repository at this point in the history
…t zkSync
  • Loading branch information
mrice32 committed Jul 12, 2023
1 parent b9cf4de commit c7a3c4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/SpokePoolVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import "./interfaces/SpokePoolInterface.sol";

/**
* @notice SpokePoolVerifier is a contract that verifies that the SpokePool exists on this chain before sending ETH to it.
* @dev This contract must be deployed via Create2 to the same address on all chains. That way, an errant transaction sent
* to the wrong chain will be blocked by this contract rather than hitting a dead address. This means that this contract
* will not work to protect chains, like zkSync, where Create2 address derivations don't match other chains.
*/
contract SpokePoolVerifier {
using Address for address;
Expand Down

0 comments on commit c7a3c4a

Please sign in to comment.