Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/contracts/contract_deployer.star
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def deploy_contracts(plan, priv_key, l1_config_env_vars, optimism_args, l1_netwo
},
run=" && ".join(
[
"cat /network-data/intent.toml | dasel put -r toml -t {0} -v {2} '{1}' -o /network-data/intent.toml".format(
"dasel put -r toml -t {0} -v {2} '{1}' -o /network-data/intent.toml < /network-data/intent.toml".format(
t, k, v
)
for t, k, v in intent_updates
Expand Down Expand Up @@ -258,7 +258,7 @@ def deploy_contracts(plan, priv_key, l1_config_env_vars, optimism_args, l1_netwo
"/network-data": op_deployer_output.files_artifacts[0],
"/fund-script": fund_script_artifact,
},
run='cat "/network-data/genesis-$CHAIN_ID.json" | jq --from-file /fund-script/gen2spec.jq > "/network-data/chainspec-$CHAIN_ID.json"',
run='jq --from-file /fund-script/gen2spec.jq < "/network-data/genesis-$CHAIN_ID.json" > "/network-data/chainspec-$CHAIN_ID.json"',
)

return op_deployer_output.files_artifacts[0]
Expand Down
2 changes: 1 addition & 1 deletion src/util.star
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read_json_value(plan, json_file, json_path, mounts=None):
description="Read JSON value",
image=DEPLOYMENT_UTILS_IMAGE,
files=mounts,
run="cat {0} | jq -j '{1}'".format(json_file, json_path),
run="jq -j '{1}' < {0}".format(json_file, json_path),
)
return run.output

Expand Down
Loading