Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

eth.contract method result not iteratable #36

Open
kumavis opened this issue Apr 19, 2020 · 0 comments · May be fixed by ethjs/ethjs-abi#17
Open

eth.contract method result not iteratable #36

kumavis opened this issue Apr 19, 2020 · 0 comments · May be fixed by ethjs/ethjs-abi#17

Comments

@kumavis
Copy link

kumavis commented Apr 19, 2020

should be able to write

  const [ resultBn ] = await uniswapv1Dai.getEthToTokenInputPrice(oneEth)

error

TypeError: (intermediate value) is not iterable

workaround

  const { 0: resultBn } = await uniswapv1Dai.getEthToTokenInputPrice(oneEth)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant