From 624950909c9657251f5f450e8ff69a2e0765c181 Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Fri, 28 Jul 2023 08:59:46 -0700 Subject: [PATCH] docs: update messenger links These docs are out of date and should reference the bedrock system. They still reference the legacy system. --- src/docs/developers/bridge/messaging.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/developers/bridge/messaging.md b/src/docs/developers/bridge/messaging.md index 1749aec2b..a84e2d37a 100644 --- a/src/docs/developers/bridge/messaging.md +++ b/src/docs/developers/bridge/messaging.md @@ -121,7 +121,7 @@ contract MyOtherContract { ``` ::: tip Using the messenger contracts -Our messenger contracts, the [`L1CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts/contracts/L1/messaging/L1CrossDomainMessenger.sol) and [`L2CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts/contracts/L2/messaging/L2CrossDomainMessenger.sol), always come pre-deployed to each of our networks. +Our messenger contracts, the [`L1CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L1/L1CrossDomainMessenger.sol) and [`L2CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2CrossDomainMessenger.sol), always come pre-deployed to each of our networks. You can find the exact addresses of these contracts on our various deployments [inside of the Optimism monorepo](https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts/deployments). ::: @@ -179,7 +179,7 @@ modifier onlyOwner() { ### For L1 ⇒ L2 transactions The majority of the cost of an L1 to L2 transaction comes from sending a transaction on Ethereum. -You send a transaction to the [`L1CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts/contracts/L1/messaging/L1CrossDomainMessenger.sol) +You send a transaction to the [`L1CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L1/L1CrossDomainMessenger.sol) contract, which then sends a call to the [`CanonicalTransactionChain`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts/contracts/L1/rollup/CanonicalTransactionChain.sol). This cost is ultimately determined by gas prices on Ethereum when you're sending the cross-chain transaction.