v5.6.2 — Warm Sweet Vermicelli Kheer
Hello everyone out there! 👋
With the changing colors of the leaves 🍁 and the feel of the arriving winter ❄️, here we are back with a new Truffle release. We have a couple of bug fixes and an internal improvement served with a warm, sweet, delicious kheer 🥣.
First up is a bug 🐛 fix related to the --verbose-rpc
💬 option. There was an issue in certain cases where you wouldn't get any RPC output when using the console
command. Now this should be fixed!
The second fix 🛠️ is that now Truffle will not overwrite objects found in the context whenever it loads the Truffle REPL (truffle develop
and truffle console
) 🖥️. For example, previously, if you had a contract whose name coincided with a built-in Node or Javascript object (say, Buffer
), the contract abstraction would overwrite the built-in object on truffle console
start-up, which could cause a number of problems. Now, this won't happen; if you encounter a collision like this, you'll have to get the contract abstraction via artifacts.require
.
That is all for this week. See you next week with another delicious treat 🤤.
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
- Respect REPL context variables when setting up REPL context (#5573 by @eggplantzzz)
- Patch/wrap the
sendAsync
method when wrapping provider (#5618 by @lsqproduction)
Internal improvements
- Turn on strict null checks in compile-common (#5624 by @haltman-at)