Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Market.main and Network.main are undefined #359

Open
CherryDT opened this issue Jun 2, 2022 · 0 comments
Open

Market.main and Network.main are undefined #359

CherryDT opened this issue Jun 2, 2022 · 0 comments

Comments

@CherryDT
Copy link

CherryDT commented Jun 2, 2022

The docs say to use this code:

import { TxBuilderV2, Network, Market } from '@aave/protocol-js'

const httpProvider = new Web3.providers.HttpProvider(
    process.env.ETHEREUM_URL ||
      "https://kovan.infura.io/v3/<project_id>"
  );
const txBuilder = new TxBuilderV2(Network.main, httpProvider);

lendingPool = txBuilder.getLendingPool(Market.main); // get all lending pool methods

...however this will later always produce empty transaction arrays and an error in the console that says "[LendingPoolValidator] You need to pass valid addresses".

It appears that Market.main and Network.main are both undefined!

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

No branches or pull requests

1 participant