Add AMM types to AccountTx filter (#954)

This commit is contained in:
Sergey Kuznetsov
2023-10-30 16:36:28 +00:00
committed by GitHub
parent 1ec5d3e5a3
commit 200d97f0de
3 changed files with 52 additions and 6 deletions

View File

@@ -5,15 +5,16 @@ exec 1>&2
# paths to check and re-format
sources="src unittests"
formatter="clang-format -i"
version=$($formatter --version | awk -F'[[:space:]]' '{print $4}')
version=$($formatter --version | grep -o '[0-9\.]*')
if [[ "16.0.0" > "$version" ]]; then
cat <<\EOF
cat <<EOF
ERROR
-----------------------------------------------------------------------------
A minimum of version 16 of `clang-format` is required.
Please fix paths and run again.
A minimum of version 16 of `clang-format` is required.
Your version is $version.
Please fix paths and run again.
-----------------------------------------------------------------------------
EOF