Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix(types): return the same type as input when wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Sep 25, 2022
1 parent ee54496 commit 8815964
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": "@morpho-labs/ethers-multicall",
"version": "1.4.0",
"version": "1.3.3",
"description": "⚡🚀 Call multiple view functions, from multiple Smart Contracts, in a single RPC query!",
"main": "lib/src/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/ethers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class EthersMulticall implements IMulticallWrapper {
}

wrap<T extends TargetContract>(contract: T) {
const copy = Object.setPrototypeOf(_cloneDeep(contract), Object.getPrototypeOf(contract));
const copy = Object.setPrototypeOf(_cloneDeep(contract), Object.getPrototypeOf(contract)) as T;

(
contract.interface.fragments.filter(
Expand Down

0 comments on commit 8815964

Please sign in to comment.