Skip to content

Commit

Permalink
Bump version, strongly type toFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
cavanmflynn committed May 3, 2021
1 parent 3538349 commit c77d81f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethers-multicall",
"version": "0.1.6",
"version": "0.2.0",
"description": "Make multiple Ethereum network requests in a single HTTP query. ethcall for ethers v5.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class Contract {
}

function toFragment(abi: JsonFragment[] | string[] | Fragment[]): Fragment[] {
return abi.map(item => utils.Fragment.from(item));
return abi.map((item: JsonFragment | string | Fragment) => utils.Fragment.from(item));
}

function makeCallFunction(contract: Contract, name: string) {
Expand Down

0 comments on commit c77d81f

Please sign in to comment.