Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Federico Giacon <[email protected]>
  • Loading branch information
mfw78 and fedgiac authored Aug 20, 2024
1 parent be22994 commit 79bd9b4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dev/generate-network-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ for deployment in "$repo_root_dir/broadcast/"*"/"*"/"*".json"; do
done \
| # Then, all these single-contract single-chain-id networks.jsons are merged. Note: in case the same contract is
# deployed twice in the same script run, the last deployed contract takes priority.
jq --sort-keys --null-input 'reduce inputs as $item ({}; . *= $item)'

# Todo: handle case where the same contract is deployed on multiple chains.
# If the same contract is deployed twice in different runs, the address in the file path that comes latest in
# alphabetical order takes priority. For example, a contract in `broadcast/Deployment10/*` is overwritten by
# one with the same name from `broadcast/Deployment2/*`.
jq --sort-keys --null-input 'reduce inputs as $item ({}; . *= $item)'

0 comments on commit 79bd9b4

Please sign in to comment.