Skip to content

Commit

Permalink
Merge pull request #318 from ethereum-ts/changeset-release/master
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
krzkaczor authored Jan 18, 2021
2 parents ebaeffc + 7062033 commit 919d7b8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
5 changes: 0 additions & 5 deletions .changeset/selfish-years-speak.md

This file was deleted.

21 changes: 14 additions & 7 deletions packages/target-truffle-v5/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
# @typechain/truffle-v5

## 4.0.1

### Patch Changes

- ebaeffc: Add missing properties to `Truffle.ContractInstance`

## 4.0.0

### Major Changes

- f8711eb: Changed return type of functions from an array to a object. This represents better runtime types.

Before, solidity function like this:

```
function x() public pure returns (uint256)
```

Generated such method signature:

```typescript
x(txDetails?: Truffle.TransactionDetails): Promise<[BigNumber]>;
```

New output is:

```typescript
x(txDetails?: Truffle.TransactionDetails): Promise<{0: BigNumber}>;
```

The difference is that now you can use standard object destructuring while working with output types.
2 changes: 1 addition & 1 deletion packages/target-truffle-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"TypeChain",
"TypeScript"
],
"version": "4.0.0",
"version": "4.0.1",
"license": "MIT",
"repository": "https://github.com/ethereum-ts/Typechain",
"main": "./dist/index.js",
Expand Down

0 comments on commit 919d7b8

Please sign in to comment.