Skip to content

Commit

Permalink
make check-interfaces.sh warn on old versions of bash (ethereum-optim…
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-bayardo authored Oct 1, 2024
1 parent 8a7db41 commit dd2b21c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/contracts-bedrock/scripts/checks/check-interfaces.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

# Warn users of Mac OSX who have not ever upgraded bash from the default that they may experience
# performance issues.
if [ "${BASH_VERSINFO[0]}" -lt 5 ]; then
echo "WARNING: your bash installation is very old, and may cause this script to run extremely slowly. Please upgrade bash to at least version 5 if you have performance issues."
fi

# This script checks for ABI consistency between interfaces and their corresponding contracts.
# It compares the ABIs of interfaces (files starting with 'I') with their implementation contracts,
# excluding certain predefined files. Constructors are expected to be represented in interfaces by a
Expand Down

0 comments on commit dd2b21c

Please sign in to comment.