Skip to content

Commit

Permalink
Change BRIDGE_ADDRESS to L1_WATCHER_BRIDGE_ADDRESS
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Fabrizio Orsi <tomas.orsi@lambdaclass.com>
  • Loading branch information
lima-limon-inc committed Feb 28, 2025
1 parent a6d1cf1 commit a8c7448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/l2/sdk/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ pub enum SdkError {

/// BRIDGE_ADDRESS or 0x6bf26397c5676a208d5c4e5f35cb479bacbbe454
pub fn bridge_address() -> Result<Address, SdkError> {
std::env::var("BRIDGE_ADDRESS")
.unwrap_or(format!("{DEFAULT_BRIDGE_ADDRESS:#x}"))
std::env::var("L1_WATCHER_BRIDGE_ADDRESS")
.unwrap()
.parse()
.map_err(|_| SdkError::FailedToParseAddressFromHex)
}
Expand Down

0 comments on commit a8c7448

Please sign in to comment.