How to rollback to an older EOSIO.CDT version with brew

Recently, EOSIO.CDT 1.7 has been released, but it has a [severe bug] where it crashes when trying to compile a contract using an eosio::ecc_public_key in one of its table structures.

If you’re on MAC you might wonder how to roll-back to a previous EOSIO.CDT version using brew.

Sadly, there’s no versioning for the EOSIO.CDT releases, but you can still rollback to a previous version by installing it directly from an old GitHub commit.

Search the EOSIO/homebrew-eosio.cdt for a commit containing your desired version to install in the eosio.cdt.rb file, view the RAW version of this file and install it by directly providing this URL to brew install

# remove old version
$ brew remove eosio.cdt
# install 1.6.3
$ brew install
Learn EOS Development Signup

Originally published at

Medium Clap

Written by

Full Stack Software Engineer #javascript #EOS. Into Recreational Math / CS 🤯 Just message me about anything, my mind is open.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store