• Mark Tyneway's avatar
    contracts-bedrock: L2CrossDomainMessenger legibility (#3266) · fec22bfe
    Mark Tyneway authored
    The `initialize()` function in the L2CrossDomainMessenger
    sets some blocked system addresses. It was using `address(this)`
    but in reality the contract is a predeploy at a specific address.
    It should not be deployed, the `initialize` function will never
    run. For the unit tests, the contracts are placed at their correct
    addresses. This makes the testing environment as close as possible
    to what is experienced on a live network.
    
    This PR hardcodes in the L2 cross domain messenger constant
    from the predeploys library instead of using `address(this)`.
    In practice this value is set using the chain ops tooling,
    so this makes it more clear as to what the value should be.
    Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
    fec22bfe
Name
Last commit
Last update
..
README.md Loading commit data...
big-ways-push.md Loading commit data...
config.json Loading commit data...
curvy-chefs-relax.md Loading commit data...
curvy-pillows-boil.md Loading commit data...
eight-socks-hope.md Loading commit data...
large-pets-teach.md Loading commit data...
lazy-singers-sing.md Loading commit data...
lemon-houses-chew.md Loading commit data...
lovely-gorillas-destroy.md Loading commit data...
ninety-experts-wave.md Loading commit data...
polite-flies-shop.md Loading commit data...
poor-jobs-glow.md Loading commit data...
pretty-clocks-repeat.md Loading commit data...
real-ravens-clean.md Loading commit data...
rude-ducks-cry.md Loading commit data...
silent-comics-flash.md Loading commit data...
thick-books-fail.md Loading commit data...
wet-monkeys-tap.md Loading commit data...