From 2adcd5119f42c220c92e301819da398d4273707e Mon Sep 17 00:00:00 2001 From: Borja Aranda Date: Mon, 23 Dec 2024 13:54:13 +0100 Subject: [PATCH] chore: pin abigen version --- dev/up | 11 ++++++++++- dev/update-tools | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dev/up b/dev/up index 81a2f4a0..cceb2c3c 100755 --- a/dev/up +++ b/dev/up @@ -12,9 +12,18 @@ if ! which mockery &>/dev/null; then go install github.com/vektra/mockery/v2; fi if ! which sqlc &> /dev/null; then go install github.com/sqlc-dev/sqlc/cmd/sqlc; fi if ! which buf &> /dev/null; then go install github.com/bufbuild/buf/cmd/buf; fi if ! which golines &>/dev/null; then go install github.com/segmentio/golines@latest; fi -if ! which abigen &>/dev/null; then go install github.com/ethereum/go-ethereum/cmd/abigen; fi if ! which jq &>/dev/null; then brew install jq; fi +# Pin abigen version at can introduce breaking changes between releases, rendering different ABIs. +if ! which abigen &>/dev/null; then + go install github.com/ethereum/go-ethereum/cmd/abigen@v1.14.12 +fi + +if [[ ${abigen_version} != "1.14.12-stable" ]]; then + echo "ERROR: abigen version is not 1.14.12. Please install the correct version." + exit 1 +fi + dev/docker/up dev/contracts/deploy-local dev/register-local-node diff --git a/dev/update-tools b/dev/update-tools index da32b8ab..52a4f57b 100755 --- a/dev/update-tools +++ b/dev/update-tools @@ -6,6 +6,5 @@ go mod tidy go install github.com/vektra/mockery/v2 go install github.com/sqlc-dev/sqlc/cmd/sqlc go install github.com/segmentio/golines@latest -go install github.com/ethereum/go-ethereum/cmd/abigen go install github.com/golang-migrate/migrate/v4/cmd/migrate go install github.com/bufbuild/buf/cmd/buf \ No newline at end of file