Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

The result returned is un-named #114

Closed
drop19 opened this issue Jun 8, 2022 · 2 comments
Closed

The result returned is un-named #114

drop19 opened this issue Jun 8, 2022 · 2 comments

Comments

@drop19
Copy link

drop19 commented Jun 8, 2022

For example, when calling Pair.getReserves() in uniswap.
The typechain result is

getReserves(
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, BigNumber, number] & {
      reserve0: BigNumber;
      reserve1: BigNumber;
      blockTimestampLast: number;
    }
  >;

However the returned object form this library is just [BigNumber, BigNumber, number], the named object is missing

@Destiner
Copy link
Owner

Destiner commented Jun 9, 2022

Hey @drop19, thanks for feedback.

Should be fixed in 4.7.2. Please let me know if the issue persists.

@Destiner Destiner closed this as completed Jun 9, 2022
@drop19
Copy link
Author

drop19 commented Jun 9, 2022

I appreciate your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants