-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
999e1e2
commit 0f2ee5e
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
With this release, Waffle introduces support human-readable abi as an output. | ||
|
||
Human readable ABI was introduced in ethers.js by @ricmoo in a [blog post](https://blog.ricmoo.com/human-readable-contract-abis-in-ethers-js-141902f4d917). | ||
|
||
To enable it, specify the following flag in Waffle config file: | ||
|
||
```json | ||
{ | ||
... | ||
outputHumanReadableAbi: true | ||
} | ||
``` | ||
|
||
You will now see the following in your output: | ||
```json | ||
{ | ||
... | ||
"humanReadableAbi": [ | ||
"constructor(uint256 argOne)", | ||
"event Bar(bool argOne, uint256 indexed argTwo)", | ||
"event FooEvent()", | ||
"function noArgs() view returns(uint200)", | ||
"function oneArg(bool argOne)", | ||
"function threeArgs(string argOne, bool argTwo, uint256[] argThree) view returns(bool, uint256)", | ||
"function twoReturns(bool argOne) view returns(bool, uint256)" | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "ethereum-waffle", | ||
"description": "Sweeter, faster and simpler than truffle.", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"author": "Marek Kirejczyk <[email protected]> (http://ethworks.io)", | ||
"repository": "[email protected]:EthWorks/Waffle.git", | ||
"private": false, | ||
|