Skip to content

Commit ca0e6eb

Browse files
authored
fix(l2): bad address parsing was forbidding sequencer to start (#2599)
**Motivation** when fetching verifier contract's addresses, the address was not being parsed correctly. this is at least one reason the SP1 job is failing right now. we should also consider alternatives to using the "0xaa" address to flag a verifier as disabled.
1 parent 9f20713 commit ca0e6eb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/l2/sequencer/l1_proof_sender.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ impl L1ProofSender {
7777
Overrides::default(),
7878
)
7979
.await?;
80-
let address = Address::from_str(&response)
80+
81+
// remove leading zeros
82+
let trimmed_response = response.trim_start_matches("0x").trim_start_matches("0");
83+
84+
let address = Address::from_str(&format!("0x{trimmed_response}"))
8185
.map_err(|_| ConfigError::HexParsingError(response))?;
8286

8387
if address != DEV_MODE_ADDRESS {

0 commit comments

Comments
 (0)