Skip to content

Commit

Permalink
check var
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden committed Oct 4, 2024
1 parent bd5286d commit 617294a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
nix develop -c sh -c '
./scripts/init-smoketests.sh &&
cd web/packages/test &&
env | grep GATEWAY_PROXY_CONTRACT &&
(./scripts/start-services.sh > "${{ env.LOG_DIR }}/start-services.log" 2>&1 &) &&
sleep 10 &&
./scripts/check-relayer.sh &&
Expand Down
2 changes: 1 addition & 1 deletion smoketest/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ lazy_static! {
DEFAULT_ETHEREUM_KEY.to_string()
}
};
println!("GATEWAY_PROXY_CONTRACT: {}", env::var("GATEWAY_PROXY_CONTRACT").unwrap());
pub static ref GATEWAY_PROXY_CONTRACT: [u8; 20] = {
if let Ok(val) = env::var("GATEWAY_PROXY_CONTRACT") {
println!("{}", env::var("GATEWAY_PROXY_CONTRACT").unwrap());
<[u8; 20]>::from_hex(val).unwrap()
}
else {
Expand Down

0 comments on commit 617294a

Please sign in to comment.