v5.0.9 — Fresh, new release, Quorum support included
We've got a fresh, new release for you today! 🥗
We have some new multi-chain infrastructure that enables basic Quorum support! You can now specify a network type in your Truffle config. To enable Quorum support, just add the type property and set it to "quorum". Check out the example below.
Example config for using Truffle with Quorum
module.exports = {
networks: {
quorumNetwork: {
host: "127.0.0.1",
port: 22000,
network_id: "*",
gasPrice: 0,
type: "quorum",
gas: 4500000
}
}
}Additionally, the debugger improvements continue to pile up. Initial modifier support has been added along with improved support for mapping keys. We have also provided a couple of fixes for watch expressions.
One final mention is the addition of a new option for truffle migrate. Now you can specify what migration to run up to (last migration inclusive) with the --to flag. So for example, on a fresh project you could run truffle migrate --to 3 and it will run migrations number 1, 2, and 3. We have also made a new --from flag which is an alias of the -f option.
Please enjoy, especially with ice cream! 🍧
How to Upgrade
We recommend upgrading to the latest version of Truffle by running:
npm uninstall -g truffle
npm install -g truffle
Changelog
Enhancements
- Add & document
--from(alias for-f) flag totruffle migrate(#1841 by @CruzMolina) - Document
--toflag fortruffle migrate(#1838 by @CruzMolina) - Support hex strings/BNs for gas config to account for Quorum's potentially large block gas limits (#1809 by @seesemichaelj)
- Enable backwards-compatible 0.4.xx solc unit testing (#1820 by @CruzMolina)
- Track storage across intra-transaction call boundaries (#1822 by @haltman-at)
- Implement basic Quorum support, improve multi-chain infrastructure (#1806 by @seesemichaelj)
- Add address parameter to contract decoder (#1812 by @haltman-at)
- Add further support for modifier parameters (with some exceptions) (#1797 by @haltman-at)
Fixes
- Allow
msg.datato work as mapping key (#1839 by @haltman-at) - Fix calldata mapping keys for Solidity 0.5.6 (#1840 by @haltman-at)
- Fix decoding of empty bytes type in storage (#1837 by @haltman-at)
- Prevent
{constructor: undefined}problem with watch expressions (#1831 by @haltman-at) - Print watch expressions with their values rather than jumbled (#1830 by @haltman-at)
- Handle non-integer
truffle developnetwork_idvalues (#1825 by @CruzMolina) - Include creation calls in the list of addresses (#1821 by @haltman-at)
Internal Improvements
- Optimize travis (#1826 by @CruzMolina)
- Edit method for version info (#1819 by @eggplantzzz)
- Remove dummy address system in favor of storage address system (#1814 by @haltman-at)
- Clean BNs before comparison to speed up Travis (#1815 by @haltman-at)
- Factor out calldata struct decoding (#1811 by @haltman-at)