From e38196247f45f73f88b3f864d742e0f498f05513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Fri, 29 Nov 2024 15:05:53 +0000 Subject: [PATCH] Fix flamegraph to account for the AMM name --- noir-projects/noir-contracts/scripts/flamegraph.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir-projects/noir-contracts/scripts/flamegraph.sh b/noir-projects/noir-contracts/scripts/flamegraph.sh index 8db540142e6..7db97d0e384 100755 --- a/noir-projects/noir-contracts/scripts/flamegraph.sh +++ b/noir-projects/noir-contracts/scripts/flamegraph.sh @@ -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}"