Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 8, 2024
1 parent 7897a1a commit 16f9327
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions smoketest/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,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 = val.strip_prefix("0x").unwrap_or(&val);
<[u8; 20]>::from_hex(stripped_address).unwrap()
<[u8; 20]>::from_hex(val.strip_prefix("0x").unwrap_or(&val)).unwrap()
}
else {
DEFAULT_GATEWAY_PROXY_CONTRACT
Expand Down

0 comments on commit 16f9327

Please sign in to comment.