Skip to content

Commit 34d93c2

Browse files
mrice32nicholaspai
andauthored
fix: [M01] add comment documenting that this contract will not protect zkSync (#313)
* fix: [M01] add comment documenting that this contract will not protect zkSync * Update contracts/SpokePoolVerifier.sol Co-authored-by: nicholaspai <[email protected]> --------- Co-authored-by: nicholaspai <[email protected]>
1 parent c0d2ee0 commit 34d93c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contracts/SpokePoolVerifier.sol

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import "./interfaces/SpokePoolInterface.sol";
66

77
/**
88
* @notice SpokePoolVerifier is a contract that verifies that the SpokePool exists on this chain before sending ETH to it.
9+
* @dev This contract must be deployed via Create2 to the same address on all chains. That way, an errant transaction sent
10+
* to the wrong chain will be blocked by this contract rather than hitting a dead address. This means that this contract
11+
* will not work to protect chains, like zkSync, where Create2 address derivations don't match other chains.
12+
* Source: https://era.zksync.io/docs/reference/architecture/differences-with-ethereum.html#create-create2
913
*/
1014
contract SpokePoolVerifier {
1115
using Address for address;

0 commit comments

Comments
 (0)