Unexpected error on insuficient funds #335
-
Hello, I'm right now just finishing Lesson 7 and this unexpected error ocurred. I had no problem deploying the contracts on the hardhat internal network but when deploying on Rinkeby shows me this error:
It says that I have not enough funds but got almost 1Eth in the rinkeby testnet. I added the testnet properly on the const RINKEBY_RPC_URL =
process.env.RINKEBY_RPC_URL || "https://eth-rinkeby.alchemyapi.io/v2/..." //Hided my code
module.exports = {
defaultNetwork: "hardhat",
networks: {
rinkeby: {
url: RINKEBY_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 4,
blockConfirmations: 6,
},
hardhat: {
chainId: 31337,
// gasPrice: 130000000000, Rinkeby also added in the 4:{//Rinkeby
name: "rinkeby",
ethUsdPriceFeed: "0x8A753747A1Fa494EC906cE90E9f37563A8AF630e",
} Please help I don't know what I'm missing! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
looks like you dont have enough eth or your
|
Beta Was this translation helpful? Give feedback.
-
@obc92 show us the code and also show me the metamask balance. |
Beta Was this translation helpful? Give feedback.
@obc92 show us the code and also show me the metamask balance.