From 7af36e8da19ecb8e501ea26ad066a701f62e4c25 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Fri, 13 Sep 2024 17:23:42 -0300 Subject: [PATCH] chore(package.json): update "gas-report" script to use "forge snapshot" command and remove double testing in adorno command. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3a90b64..17c33d5 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "lint:sol": "forge fmt --check && pnpm solhint {script,src,test,certora}/**/*.sol", "prettier:check": "prettier --check **/*.{json,md,yml} --ignore-path=.prettierignore", "prettier:write": "prettier --write **/*.{json,md,yml} --ignore-path=.prettierignore", - "gas-report": "forge test --gas-report 2>&1 | (tee /dev/tty | awk '/Suite result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)", + "gas-report": "forge snapshot --gas-report 2>&1 | (tee /dev/tty | awk '/Suite result:/ {found=1; buffer=\"\"; next} found && !/Ran/ {buffer=buffer $0 ORS} /Ran/ {found=0} END {printf \"%s\", buffer}' > .gas-report)", "release": "commit-and-tag-version", - "adorno": "pnpm prettier:write && forge fmt && forge snapshot && pnpm gas-report" + "adorno": "pnpm prettier:write && forge fmt && pnpm gas-report" } }