Truffle Versions Save

A tool for developing smart contracts. Crafted with the finest cacaos.

v5.5.30

3 weeks ago

Hello once again! ?

Recently we added experimental ? support for using Truffle Debugger ? with Hardhat projects. Well, this experiment is turning up results ?; @tomasz90 found that our implementation had problems for Hardhat projects whose configuration scripts would write to stdout. We've now fixed this error, so hopefully more people can now try out this (still experimental ?‍?) feature! Thanks Tomasz!

There are some other minor changes this week; we've updated the solc version in truffle init to 0.8.17. And thanks to @eltociear for fixing a typo in one of our READMEs, and to @sashashura for a security improvement to our CI! ?

That's it this week, but as always there's more coming soon!

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 @truffle/from-hardhat's support for Hardhat projects whose config files produce stdout (#5510 by @gnidan)
  • Fix computation of event status in flattedEvents (#5512 by @haltman-at)

Internal improvements

Dependency updates

v5.5.29

4 weeks ago

Hello once again!

In this week's Truffle release we've added the ability to use instance.estimateGas() ⛽ or instance.call() ☎ with Truffle Contract. (The latter won't work if your contract already has a method named call.) This is useful if you want to estimate the gas used by the fallback function, or to test the fallback function's return value.

Also this week, @Neurone has updated the list of URLs that we source the Solidity compiler from. Faster solc binaries have now been given a higher priority, so hopefully this should reduce your compile times! ?

In addition, we've added support in truffle debug --fetch-external for more of the networks supported by Etherscan, so you can debug ? verified contracts on more networks. And as always, come back next week for even more improvements to Truffle! ?

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

  • Update list of URLs to fetch Solidity compiler from (#5008 by @Neurone)

Internal improvements

Dependency updates

v5.5.28

1 month ago

Hello all! ?

This week sees a large-scale revamp of Truffle Dashboard. ? It's faster with fewer interruptions; it has a ? dark mode; and your wallet will no longer disconnect upon refresh. These are only some of the ways that Truffle Dashboard has been improved; you may want to check out the PR for details!

See what it looks like!

Meanwhile, other improvements continue apace! ⛵ The commands truffle --version and truffle -v should now work correctly, in addition to the already-supported syntax of truffle version. The --fetch-external option for Truffle Debugger now supports fetching Etherscan-verified contracts from the Gnosis network. ? And for those of you using the @truffle/abi-utils library, we've added functions for computing signatures and selectors. ✍

Finally, thanks to @ebrahimmfadae for spotting and fixing a deployer error that could occur when using the overwrite option!

That's all for this week, but as always we'll be back soon 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

  • Dashboard frontend revamp (dark mode, performance, etc) (#5241 by @cliffoo)
  • Add selector and signature computation functions to abi-utils (#5465 by @haltman-at)
  • Add gnosis network to etherscan fetcher (#5469 by @haltman-at)

Bug fixes

Internal improvements

Dependency updates

v5.5.27

1 month ago

Hello again! ?

It's that time of the week for a delicious new Truffle release ?

Ever wanted to use the Truffle Debugger within a Hardhat project? Well this release introduces a new package that does just that! ? To try it out, simply run truffle debug <txHash> and Truffle handles the rest. This is an experimental feature so there may be ?'s and as always we'd love your feedback!

The files generated by truffle init have been updated and now better reflect the scenarios in which Truffle is commonly used. ? Beyond that we've added the godwoken mainnet when using debugger's --fetch-external flag. There's also an update to the debugger's block.difficulty calculation in preparation for the merge.

Shout out to @eltociear for typo fix in compilations/types.ts too! ?

That's all for now! See you next week for another candy-fueled installment.

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

  • Prevent crash that occurs when processing certain bad jumps (#5425 by @haltman-at)

Internal improvements

Dependency updates

v5.5.26

1 month ago

Hey ya'll ? We hope you're having a great week! To hopefully make it even better, we've got a fruity new Truffle release for you ?

First up, there's a number of improvements to truffle opcode and the @truffle/code-utils package. These include various bug ? fixes, improved Vyper support, and a reworked interface to @truffle/code-utils.

With Optimism's deprecation of the Kovan testnet, in preparation for the merge, we've added Optimistic Goerli to Sourcify fetcher. ♻️

We've fixed a bug where Truffle would use inconsistent information when trying to download the Solidity compiler! In addition, we've squashed a bug wherein the --grep option to Truffle Test didn't always work properly.

Beyond that, there's a range of version bumps and config tweaks. And last but not least we've removed a bunch of warnings ⚠️ from both the bootstrap (for those that contribute) and installation processes.

That's all for now! And in case you were wondering ?

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.5.25

2 months ago

Hello all! ?

This week we've fixed a bug ? that prevented the test ? and migrate ? commands from working properly with public testnets, and with Truffle Dashboard, when used from the Truffle Console. These should now work properly, and you can get on with testing on testnets! ?

Other than that, we have various new capabilities added to the @truffle/debugger ? and @truffle/encoder libraries, for anyone who is using those libraries directly; we also have a bunch of internal improvements. Notably, @truffle/contract is now compiled with Webpack rather than Browserify, which will allow us to better make improvements to it in the future.

That's all for this week, but as always, we'll be back soon 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

v5.5.24

2 months ago

Hello again! :wave: It's the end of a hot July, and we have a few improvements to offer. ?

This release has a bug fix to ensure error information is propagated during contract migration. Thanks, @SmartArray for raising this issue :bow: We also updated our Ganache dependency to v7.4.0, which opens some exciting possibilities. Watch this space! ?

Stay cool and 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

Enhancements

Bug fix

  • Ensure deployment error events always return the message (#5361 by @haltman-at)

Internal improvements

Dependency update

v5.5.23

2 months ago

It's nearing the end of a week and that means another Truffle release! ?

We shook off some outdated ? dependencies, and added a raw field to the event action in the Truffle debugger txlog ✨. This new field is available even if decoding fails, so it's a nice fail-safe ? that reliably gives you transaction details. How cool! ?

Have yourself a Dorayaki (Japanese red bean pancake) and enjoy the rest of your week. ? Until 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

Enhancements

Internal improvements

Dependency updates

v5.5.22

2 months ago

Hey everybody ? Hope you're having a great Friday afternoon. Have we got a new Truffle release for you!

Truffle console remediated the behavior for assignments with await (e.g. foo = await bar). We also provide a gentle error ? instead of crashing on invalid Truffle commands.

Shout-out to @burz for adding a GitPOAP badge to the README, ? so fun! Also @wbt for spotting and resolving the ethereumjs-util version issue! ?

Truffle is updated to use the latest Ganache at v7.3.2 ✨

We've also removed the truffle install and truffle publish commands due to a rather lackluster level of community support for EthPM. Discussion here.

Note that the debugger removed the indicateUnknown option and defaults it to true. That's a breaking change so there's a new major for @truffle/debugger (v10.0.17 => v11.0.0)

That's about it for this week. Tune in next week for 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

  • Better mnemonic and private key validation logic (#5261 by @eggplantzzz)
  • Add integration tests for debug command (#5263 by @sukanyaparashar)
  • Add dependency check to Github Actions (#5264 by @cds-amal)
  • Clear Browserslist caniuse-lite is outdated message when building dashboard (#5273 by @cliffoo)
  • Add missing buffer import in dashboard-message-bus-common (#5274 by @cliffoo)
  • Add GitPOAP badge in README to show minted GitPOAPs for contributors (#5284 by @burz)
  • Remove reference to leftover typings in contract's package.json (#5288 by @eggplantzzz)
  • Increase timeout on decoder test (#5291 by @haltman-at)

Dependency updates

v5.5.21

2 months ago

Hello everyone!? Happy summer!☀️

It is a fresh new week with a few new delicious treats for you, an enhancement, a dependency update and a couple of important internal improvements.

First up is an enhancement which adds new Sourcify networks for the month of July. Next is a dependency update for abi-to-sol. We have updated the version of abi-to-sol used in @truffle/resolver package, so importing ABI JSON files in your Solidity projects will work better! ?

Thank you @s1na for fixing the GETH docker in our CI and @eltociear for fixing a typo in our documentation. We love contributions from our users.??

That is all for this week and we hope to bring some more sweet delicacies for you next week. Stay tuned!

How to upgrade

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

npm uninstall -g truffle
npm install -g truffle

Changelog

Enhancements

Internal improvements

Dependency updates