Truffle Versions Save

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.

v5.7.8

1 year ago

Welcome back! ๐Ÿ‘‹ Another Truffle release is out in the wild today. Once again it is mostly a maintenance-type release with some bug fixes and internal improvements. We have to give a shout-out ๐Ÿ”ˆ to @sandakersmann for updating the copyright information in Truffle's LICENSE file. Thanks so much for helping keep everything tidy and up-to-date! We'll see you next time and we wish you all a beautiful weekend!๐Ÿฆš

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancement

Bug fixes

Internal improvements

Dependency update

v5.7.7

1 year ago

Hello hello! ๐Ÿ‘‹ It's time for another Truffle release!

This week, we have a little bit of everything for you! Truffle should now properly return an error when it is due to an out of gas exception! ๐ŸŽ‰ Previously, these were coming back as custom errors without further information. Additionally, you can now see a link to the Truffle Debugger documentation in the CLI when using it! ๐Ÿ‘€ Always nice to have more information at your fingertips! โŒจ๏ธ

Special thanks to @sukanyaparashar for upgrading the solc dependencies to v0.8.18 in contract-schema and compile-solidity packages! ๐Ÿ™

See below for more detail on the contents of this week's release. Thanks for reading, and we'll see you next week! โœจ

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancements

Bug fixes

  • Fix (most) incorrect reports of custom errors (#5903 by @haltman-at)
  • Set yargs help to always use truffle instead of script name (#5883 by @cds-amal)

Internal improvements

Dependency updates

v5.7.6

1 year ago

Hi folks! Nice seeing you today ๐Ÿคฉ

This week's Truffle release brings you fixes to some bugs that got surfaced internally. Hopefully these bugs didn't affect you, or maybe you were too busy dipping pieces of fruit into melted chocolate to open an issue ๐Ÿ˜ฎ ๐Ÿ ๐Ÿ“. In any case, we recommend reading on and upgrading!

Most notably: you can now switch accounts between transactions in Truffle Dashboard. This wasn't working correctly, which meant problems if (e.g.) your deployment process requires multiple accounts to sign different transactions... not great ๐Ÿ™€! Fortunately, this is now fixed and you can feel free to use Truffle Dashboard for all your CLI-driven signature needs, no matter how many counter-parties you want to involve in your smart contracts. ๐Ÿ“„ ๐Ÿ–Š๏ธ

Besides that, Truffle's interactive console (i.e., in truffle develop and truffle console) now properly interprets quoted strings... e.g., now "two words" gets treated as only one string, the way you'd expect! We've also fixed the behavior of our help system inside the interactive console, so now help inside Truffle's console behaves the same as truffle help on the command line. โ„น๏ธ

Special shout-out to @sukanyaparashar for updating our truffle init output to the latest Solidity! Thanks for getting that for us ๐Ÿ™.

Scroll down for all the details if you'd like... regardless, take care and thanks for reading! ๐Ÿ‘‹

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Bug fixes

  • Fix help in truffle develop and truffle console (#5871 by @eggplantzzz)
  • Support switching accounts between signature requests in Truffle Dashboard (#5846 by @cliffoo)
  • Properly handle quotes, backslashes, etc in commands at console (#5861 by @haltman-at)

Internal improvements

  • Improve CompilerSupplier via memoization and async filesystem access (#5829 by @eggplantzzz)
  • Ensure @truffle/from-hardhat specifies --no-compile (#5872 by @kevinbluer)

Dependency updates

v5.7.5

1 year ago

Hey everyone! ๐Ÿซ  This week we're back with another release that mostly takes care of some good old fashioned housekeeping. ๐Ÿงน

So Solidity 0.8.18 was recently released and there are a couple of updates here to keep up with them. The one of the two worth mentioning is the new block.prevrandao alias (for block.difficulty). This has been added as a globally available variable in the debugger. Additionally, we bumped highlightjs-solidity (which will yield better syntax highlighting) and web3 (woohoo!๐ŸŽ‰). We hope you enjoy and we'll see you next time! ๐Ÿ‘‹

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancement

  • Add block.prevrandao as globally available variable in debugger (#5866 by @haltman-at)

Internal improvement

  • Add appendCBOR field in metadata settings type in source fetcher (#5864 by @haltman-at)

Dependency updates

v5.7.4

1 year ago

Hi all, we've got a small release this week but it's got some useful bug ๐Ÿ› fixes!

Specifically, there was a problem where, when using abbreviated names of Truffle commands -- for instance, truffle migr instead of truffle migrate -- some command-line options might not get set properly. But this has been fixed now so you may be as terse as you please! ๐ŸŽ

And -- aside from some internal improvements and dependency updates -- that's it! But we'll be back next week with more, and interesting things are brewing for later... ๐Ÿซ–

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Bug Fixes

  • Ensure yargs receives the correct command name when it has a typo (#5834 by @eggplantzzz)

Internal improvements

Dependency updates

v5.7.3

1 year ago

Hello all! ๐Ÿ‘‹

We hope you're having a great start to 2023 and hanging in there with your New Year's resolutions. ๐Ÿง˜

This week's release offers up a number of quality of life improvements and all round healthy goodness. Firstly, Truffle now ships with Ganache v7.7.3 which adds support for the Merge! โ™ป๏ธ In addition, Truffle now more robustly handles help requests so truffle help <cmd>, truffle <cmd> --help, and truffle --help <cmd> should all have consistent output when searching for help for a given command. ๐Ÿ“– We've also updated the list of supported networks by Sourcify.

Lastly, Truffle will also now politely ask if you'll be willing to share telemetry when using Truffle Dashboard. ๐Ÿ™ Note that this will never include any personal data and you can view our analytics policy for more detail.

That's all for this week, but as always, we'll be back next week with more!

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancements

Bug Fixes

Internal improvements

Dependency updates

v5.7.2

1 year ago

Hello all, welcome to 2023!!! ๐Ÿฅ‚ ๐Ÿฅณ ๐Ÿพ We are back at it again with our weekly releases. ๐Ÿ›ผ

A big shoutout to @dPreininger for ringing in the โœจ new year ๐ŸŽ‰ with a bug fix for Truffle! There was an issue they fixed with Truffle's development console to prevent crashes when interacting with Vyper smart contracts ๐Ÿ. Thank you for getting this! Many contributed their time and talent last year, and we are very much looking forward to collaborating more this year with our community. Please feel free to reach out if you find any issues in our backlog exciting. ๐Ÿ™‡

๐Ÿ—๏ธ Please take a moment to complete The Solidity Development Survey 2022. The last day to fill out the survey is January 7th. Thank you! ๐Ÿ™๐Ÿฝ

See you soon!

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Bug fix

  • Fix truffle console crash when metadata is missing in JSON artifact (#5819 by @dPreininger)

Internal improvements

  • Change display name of @truffle/error and remove its stack property (#5787 by @cds-amal)

Dependency updates

v5.7.1

1 year ago

Hello all! ๐Ÿ‘‹

We want to bring a delicious chocolate ๐Ÿซ pavlova with spiced pears ๐Ÿ to celebrate ๐ŸŽ‰ this holiday season. Sit down ๐Ÿช‘, relax ๐Ÿค—, and enjoy ๐Ÿฅณ!!!

While Truffle dropped support for Node 12 a while back, we hadn't been enforcing this in our Node version check at startup. We now check this; Truffle will now refuse to run on Node 12 to prevent any problems.

One more thing! Please take a moment to complete The Solidity Development Survey 2022. This helps our community ๐Ÿง‘๐Ÿฝโ€๐Ÿคโ€๐Ÿง‘๐Ÿฝ to improve. Thanks! ๐Ÿ™๐Ÿฝ

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Internal improvements

Dependency updates

v5.7.0

1 year ago

Hey ho, we have a release! Let's go, enjoy it with some treats! ๐Ÿซ

It's Thursday yet again and we have a Truffle release coming your way! โ†”๏ธ This one is pretty exciting because we are finally releasing a console.log for Solidity in Truffle's testing and console environment. Simply use the following import at the top of your contract:

import "truffle/console.sol";

Then you can call console.log() similar to how you would in JavaScript.

console.log("this is logging and here is an address - %o", msg.sender);

Now when you run this code during a Truffle test run or in Truffle's console environment, you will receive logging! Super cool! ๐Ÿชต

Another change we have this week is an update to the ENS infrastructure. When deploying an ENS dev registry, Truffle will also deploy a reverse registrar to allow for reverse resolution. So happy resolving!

@truffle/provider received a spruce up as well! Remember EIP 1193? This is the one that specifies a request method on providers (in addition to some other things). Now @truffle/provider is 1193 compliant!

Lastly we have a couple improvements that are a bit more internal to Truffle. A bit of code was cleaned up and fixed ๐Ÿ› ๏ธ, and an improvement which makes the encoding of contract creations easier was added.

โ„น๏ธ Oh and before we go, we'd like to once again remind you that the Solidity team is conducting a survey to find ways of bettering the language and the compiler. So go complete it here to help improve the ecosystem!

And that should be it for this week! Happy middle of December to everyone and we'll see you again next time!

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Feature

Enhancements

Bug fixes

  • fix missing mocha runner during in-test debugging setup (#5782 by @gnidan)
  • add workaround for weird migration format (#5785 by @cds-amal)
  • don't load Truffle's console contract into the console environment (#5788 by @eggplantzzz)

Internal improvement

v5.6.9

1 year ago

Hello all! ๐Ÿ‘‹

It seems like everyone is overjoyed ๐Ÿฅณ seeing their favourite players scoring goals. Are you feeling the FOOTBALL WORLD CUP โšฝ fever too? Then enjoy munching on a bucket full of caramel popcorn ๐Ÿฟ with a new Truffle Release ๐ŸŽ‰ to take your excitement to another level!

This week's release includes a ๐Ÿ› fix for the type issues with hdwallet-provider in your Typescript projects. Yay! ๐ŸŽ‰ We also added support for Boba Goerli network ๐Ÿ•ธ๏ธ to truffle debug --fetch-external. "More networks = More verification = More fun = More Safety"

One more thing! Please take a moment to complete The Solidity Development Survey 2022. This helps our community ๐Ÿง‘๐Ÿฝโ€๐Ÿคโ€๐Ÿง‘๐Ÿฝ to improve. Thanks! ๐Ÿ™๐Ÿฝ

Sit back and cheer for your favourite teams! See you next week with a new Truffle Release! ๐Ÿฅณ

How to upgrade

We recommend upgrading to the latest version of Truffle by running:

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancement

  • Switch Etherscan fetcher from Boba Rinkeby to Boba Goerli (#5761 by @haltman-at)

Bug fix

Internal improvements

  • Remove Arbitrum Rinkeby and Optimistic Kovan from Etherscan fetcher (#5759 by @haltman-at)

Dependency updates