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

I keep getting this error #4

Closed
Useruses opened this issue May 18, 2021 · 4 comments
Closed

I keep getting this error #4

Useruses opened this issue May 18, 2021 · 4 comments

Comments

@Useruses
Copy link

Error: invalid hexlify value (argument="value", value="my mnemonic", code=INVALID_ARGUMENT, version=bytes/5.1.0)
at Logger.makeError (C:\Users\comp\Downloads\update-bot\node_modules@ethersproject\logger\lib\index.js:180:21)
at Logger.throwError (C:\Users\com\Downloads\update-bot\node_modules@ethersproject\logger\lib\index.js:189:20)
at Logger.throwArgumentError (C:\Users\comp\Downloads\update-bot\node_modules@ethersproject\logger\lib\index.js:192:21)
at Object.hexlify (C:\Users\comp\Downloads\update-bot\node_modules@ethersproject\bytes\lib\index.js:190:19)
at new SigningKey (C:\Users\comp\Downloads\update-bot\node_modules@ethersproject\signing-key\lib\index.js:20:65)
at new Wallet (C:\Users\comp\Downloads\update-bot\node_modules@ethersproject\wallet\lib\index.js:123:36)
at file:///C:/Users/comp/Downloads/update-bot/bot.js:38:16
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:177:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5) {
reason: 'invalid hexlify value',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: 'my mnemonic'
}

@Nafidinara
Copy link
Owner

Put your private key on mnemonic variable, then run again

@Useruses
Copy link
Author

Useruses commented May 19, 2021

I already have put it, I just replaced it with "my mnemonic" in the error message.
Here is how the line 22 looks, (my mnenomic instead of the private key):
const mnemonic = 'my mnemonic'

@Nafidinara
Copy link
Owner

try to see this reference : ethers-io/ethers.js#1166

@Useruses
Copy link
Author

try to see this reference : ethers-io/ethers.js#1166

Ok thank you.

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

2 participants