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:
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps truffle from 5.1.48 to 5.7.0.
Release notes
Sourced from truffle's releases.
... (truncated)
Commits
c984fe3
Publish3123c7b
Implement console.log in Truffle (#5687)28d00b8
Publishee656b7
Publish94dda0c
Publisheb8a3a6
Merge pull request #5709 from trufflesuite/bump-mochacee41e5
Merge pull request #5710 from trufflesuite/sweep-up8db49f7
Publish9ab12a8
get rid of unnecessary gitHead property from package.jsonsb186513
bump mocha to 10.1.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)