Skip to content

TypeError: Cannot read property 'address' of undefined at init #187

Open

Description

@theanonymoustrader

Runned this file: https://github.com/jklepatch/eattheblocks/blob/master/profitable-flashloans/30-make-arbitrage-script-run-247/run-arbitrage.js

I've installed every package but......I've got this error when I run it.

TypeError: Cannot read property 'address' of undefined at init (line 29-35).

These are the lines.

const init = async () => {
const networkId = await web3.eth.net.getId();
const flashloan = new web3.eth.Contract(
Flashloan.abi,
Flashloan.networks[networkId].address
);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions