v5.1.37 β Double-Dipped Donut π©π©
Hello all! π
This week, thanks to @KiChjang, Truffle now will warn you on compilation if your project has multiple contracts with the same name. We're still working on supporting this case, but for now a warning has been added. π
Also, we've fixed a problem in the debugger related to debugging verified external contracts. (Have you tried this yet? If not, you should take a look! π§ ) Sometimes the debugger would fail to recognize a verified contract if it was capable of creating other contracts; this should now be fixed. In addition, a decoding error has been fixed that would cause certain calldata arrays to decode incorrectly.
Speaking of the debugger, we've also updated syntax highlighting to account for Solidity 0.7.0! We're still working on updating other things to Solidity 0.7.0 where appropriate, but of course you can continue using existing versions of Solidity with no problem. π
That's all for this week, but we'll be back next week with more fixes and improvements! π§ See you then!
How to upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Emit warnings when duplicate contract names are found during compilation (#3021 by @KiChjang)
- Document
truffle compile --compiler
flag and addnone
as an option (#3208 by @gnidan)
Bug fixes
- Detect external contracts that create other contracts (#3212 by @haltman-at)
- Only apply length overrides when decoding from stack (#3204 by @haltman-at)
Internal improvements
- Update native solc test to 0.7.x (minimally) (#3210 by @haltman-at)
- Update prettier to avoid trailing commas (#3213 by @gnidan)
- Update calls to artifactor.saveAll (#3211 by @eggplantzzz)
Dependency updates
- Update syntax highlighting for Solidity 0.7.0 (#3214 by @haltman-at)