Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 7, 2024
1 parent 4d3266c commit 984d573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smoketest/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ lazy_static! {
pub static ref GATEWAY_PROXY_CONTRACT: [u8; 20] = {
if let Ok(val) = env::var("GATEWAY_PROXY_CONTRACT") {
println!("{}", env::var("GATEWAY_PROXY_CONTRACT").unwrap());
let stripped_address = var.strip_prefix("0x").unwrap_or(&var);
let stripped_address = val.strip_prefix("0x").unwrap_or(&val);
<[u8; 20]>::from_hex(stripped_address).unwrap()
}
else {
Expand Down

0 comments on commit 984d573

Please sign in to comment.