Skip to content

Commit

Permalink
fix(contracts): fix typos in awk script
Browse files Browse the repository at this point in the history
  • Loading branch information
guidanoli committed Jul 27, 2023
1 parent 2cc22b8 commit c2cb48b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions onchain/rollups/test/foundry/dapp/helper/jqFilter.awk
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Processes forge test output and prints out a jq filter to be applied
# to the vouchers.json file in order to update the faulty proofs
# to the inputs.json file in order to update the faulty proofs

/^[ ]*Proof for output [0-9]+ might be outdated/ {
voucherFound = 1;
voucherRow = NR;
voucherId = $4;
outputFound = 1;
outputRow = NR;
outputId = $4;
}

voucherFound && (NR == voucherRow + 1) {
sender[voucherId] = $1;
outputFound && (NR == outputRow + 1) {
sender[outputId] = $1;
}

voucherFound && (NR == voucherRow + 2) {
payload[voucherId] = $1;
outputFound && (NR == outputRow + 2) {
payload[outputId] = $1;
}

END {
Expand Down

0 comments on commit c2cb48b

Please sign in to comment.