From 4bd1350a8e070ed4c3bc51f66be078682fca5304 Mon Sep 17 00:00:00 2001 From: Richard Janis Goldschmidt Date: Sun, 14 Jul 2024 11:49:58 +0200 Subject: [PATCH 1/2] chore(test): use a temporary name to not pollute the workspace --- charts/deploy.just | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/charts/deploy.just b/charts/deploy.just index 520270f195..a03cdd0956 100644 --- a/charts/deploy.just +++ b/charts/deploy.just @@ -383,6 +383,12 @@ run-smoke-cli: CURRENT_BLOCK=$(just hex-to-dec $CURRENT_BLOCK_HEX) echo {{sequencer_bridge_pkey}} > test_se + withdrawals_dst="$(mktemp)" + # uncomment this line if you want to inspect `withdrawals_dst` + trap "rm -f ${withdrawals_dst@Q}" EXIT + + echo "passing ${withdrawals_dst} to astria-cli" + astria-cli bridge collect-withdrawals \ --rollup-endpoint {{eth_ws_url}} \ --contract-address {{evm_contract_address}} \ @@ -390,13 +396,12 @@ run-smoke-cli: --to-rollup-height $CURRENT_BLOCK \ --rollup-asset-denom nria \ --bridge-address {{sequencer_bridge_address}} \ - --output ./withdrawals.json + --output "${withdrawals_dst}" astria-cli bridge submit-withdrawals \ --signing-key <(printf "%s" "{{sequencer_bridge_pkey}}") \ --sequencer-chain-id {{sequencer_chain_id}} \ --sequencer-url {{sequencer_rpc_url}} \ - --input ./withdrawals.json - + --input "${withdrawals_dst}" CHECKS=0 EXPECTED_BALANCE=$(echo "1 * {{sequencer_base_amount}}" | bc) From 2a1cf50a40d1a23d1715ac2126edee16d90b36e5 Mon Sep 17 00:00:00 2001 From: Richard Janis Goldschmidt Date: Mon, 15 Jul 2024 13:16:42 +0200 Subject: [PATCH 2/2] don't write key to file --- charts/deploy.just | 1 - 1 file changed, 1 deletion(-) diff --git a/charts/deploy.just b/charts/deploy.just index a03cdd0956..7349bd51a6 100644 --- a/charts/deploy.just +++ b/charts/deploy.just @@ -381,7 +381,6 @@ run-smoke-cli: CURRENT_BLOCK_HEX=$(just evm-get-block-by-number latest | jq -r '.number') CURRENT_BLOCK=$(just hex-to-dec $CURRENT_BLOCK_HEX) - echo {{sequencer_bridge_pkey}} > test_se withdrawals_dst="$(mktemp)" # uncomment this line if you want to inspect `withdrawals_dst`