-
Notifications
You must be signed in to change notification settings - Fork 466
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
Cannot read property of 'address' of undefined #12
Comments
Verify your metamask wallet addresses. |
All the addresses in my .env file are correct to my metamask wallet. |
Did you get it to work yet? I am getting a web3 error when I run the index.js file... |
Here is my output that I get when I run the script... qwert@eqrt-MacBook-Pro defi-bot-1 % node src/index.js Order has taker fee |
Did you add the HDWallets package and configure it in the truffle-config.js file? |
could this be the issue? |
I'm getting this error whenever I run the index.js bot and I'm not sure what the solution is. I've tried defining 'address' in the code where it's throwing the error, and it still says the same thing.
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
C:\Users\water\Documents\github\defi-bot\node_modules\web3-eth-accounts\lib\index.js:408
if (!this[account.address]) {
^
TypeError: Cannot read property 'address' of undefined
at Wallet.add (C:\Users\water\Documents\github\defi-bot\node_modules\web3-eth-accounts\lib\index.js:408:23)
at Object. (C:\Users\water\Documents\github\defi-bot\src\index.js:23:26)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
Does anyone have any ideas what could be causing this issue?
The text was updated successfully, but these errors were encountered: