Skip to content

Commit

Permalink
Fix flamegraph to account for the AMM name
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro committed Nov 29, 2024
1 parent 9af1fdc commit e381962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir-projects/noir-contracts/scripts/flamegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function sed_wrapper() {
}

# convert contract name to following format: token_bridge_contract-TokenBridge.json
ARTIFACT=$(echo "$CONTRACT" | sed_wrapper -r 's/^([A-Z])/\L\1/; s/([a-z0-9])([A-Z])/\1_\L\2/g')
ARTIFACT=$(echo "$CONTRACT" | sed_wrapper -r 's/^([A-Z]+)/\L\1/; s/([a-z0-9])([A-Z])/\1_\L\2/g')
ARTIFACT=$(echo "$ARTIFACT" | tr '[:upper:]' '[:lower:]')
ARTIFACT_NAME="${ARTIFACT}_contract-${CONTRACT}"

Expand Down

0 comments on commit e381962

Please sign in to comment.