Skip to content

Commit

Permalink
fix(integration-script): update json parsing to ignore invalid json l…
Browse files Browse the repository at this point in the history
…ines

Signed-off-by: Bryan Cole <[email protected]>
  • Loading branch information
ColePBryan committed Oct 19, 2023
1 parent dd059df commit 74493fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/integration_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ deploy_tap_contracts() {
export ALLOCATION_TRACKER_ADDRESS=$(forge create \
--unlocked --from $DEPLOYER \
--rpc-url localhost:8545 src/AllocationIDTracker.sol:AllocationIDTracker --json \
| jq -r '.deployedTo')
| jq -Rr 'fromjson? | .deployedTo')
export TAP_VERIFIER_ADDRESS=$(forge create \
--unlocked --from $DEPLOYER \
--rpc-url localhost:8545 src/TAPVerifier.sol:TAPVerifier \
--constructor-args 'tapVerifier' '1.0' --json \
| jq -r '.deployedTo')
| jq -Rr 'fromjson? | .deployedTo')
export ESCROW_ADDRESS=$(forge create \
--unlocked --from $DEPLOYER \
--rpc-url localhost:8545 src/Escrow.sol:Escrow \
--constructor-args $GRAPH_NODE_ADDRESS $STAKING_ADDRESS $TAP_VERIFIER_ADDRESS $ALLOCATION_TRACKER_ADDRESS $WITHDRAW_ESCROW_FREEZE_PERIOD $REVOKE_SIGNER_FREEZE_PERIOD --json \
| jq -r '.deployedTo')
| jq -Rr 'fromjson? | .deployedTo')
echo "TAP contracts deployed"
cd -
}
Expand Down

0 comments on commit 74493fb

Please sign in to comment.