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

Please Help * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes #3

Open
Deamonk1 opened this issue Jun 11, 2022 · 0 comments

Comments

@Deamonk1
Copy link

Hi ,Please when i try compile hardhat.config.js i get the error : * Invalid account: #0 for network: Rinkeby - private key too short, expected 32 bytes Please what does it mean and how do i convert my Rinkeby private key in dot env to bytes
Any idea on how to solve this error and compile successfully . Thanks in Advance here's my code hardhat.config.js

/**

  • @type import('hardhat/config').HardhatUserConfig
    */

require ('dotenv').config();
require("@nomiclabs/hardhat-ethers");

const { API_URL, PRIVATE_KEY } = process.env

module.exports = {
solidity: "0.7.1",
defaultNetwork: "Rinkeby",
networks: {
hardhat: {},
Rinkeby: {
url: API_URL,
accounts: ['${0xf302aC9c7a55B5A5a50BFb027696F307101df60A}']
}
}
}
Screen Shot 2022-06-11 at 12 35 48 AM

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
@Deamonk1 and others