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

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

Open
theanonymoustrader opened this issue Oct 12, 2022 · 0 comments
Open

Comments

@theanonymoustrader
Copy link

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
);

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