Category "hardhat"

Hardhat: ProviderError: The execution failed due to an exception

I'm deploying contracts with hardhat, but cannot use address type in contracts ProviderError: The execution failed due to an exception. at HttpProvider.requ

HardHat Unable to download compiler versions list

So this is my first interaction with hardhat. I created a sample project using npx hardhat but for some reason, when I try to Run: npx hardhat test I get the f

How to run an hardhat script on NodeJs so that you can fork multiple evm chains on different ports?

I want to be able to fork more chains (ethereum, bsc, etc.) than just one on my system. Hardhat doc shows, how to fork 1 chain npx hardhat node --fork https://

How do I resolve this Hardhat CompilerError? (Stack too deep when compiling inline assembly)

I'm analyzing the Chainrunners smart contracts, so I went on Etherscan and copied the verified contract source code. When I tried to compile without solidity op

Getting an error when trying to execute the deploy script

I'm getting a Transaction reverted without a reason string when I try to execute the deploy script. Smart Contract: //SPDX-License-Identifier: MIT pragma solid

npx hardhat doesnt creates a new project

I tried creating a new hardhat project. I tried the following commands in terminal. npm init --yes npm install --save-dev hardhat But when I use the following

Stop the time within the test in Hardhat (Solidity)

Is it possible to stop the time within the test, until the time is changed manually via "evm_increaseTime" in Hardhat? For example when we increase time by 1 se

Hardhat compile error "Expected a value of type HttpNetworkConfig"

I'm attempting to follow the NFT tutorial here. I have set up the accounts on Alchemy and Metamask created the .sol file. I have a .env file in root that look

Version of Node.js which not supperted by hardhat, but I have LTS version of node

I installed nvm in Ubuntu 20.04. Then using nvm I installed node and npm. The general task is to use hardhat in my Solidity project. I created npm project and i

Error: missing revert data in call exception while testing with Hardhat

I want to test get my function TokenUri using hardhat. Here it is: function tokenURI(uint256 tokenId) public view virtual override returns (string memory){

Error connecting to localhost after npm hardhat run

I am new to deploying smart contracts with hardhat and am following a tutorial at https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j

How to use TransparentUpgradeableProxy as Transparent Proxy

I'm Solidity Newbie. I'm learning how to implement Transparent Proxy using Openzeppelin's TransparentUpgradeableProxy contract, but am having some problems. Ste

No safeTransferFrom function in ethers.js contract instance?

I created a contract instance in hardhat console like so: const contract_fac = await ethers.getContractFactory("ContractName"); const contract = await contract_

when using Hardhat doesnt exist create project

after maked directory and on terminal I typed 'npx hardhat' enter image description here but doesnt showed create project when i saw their tutorial, possible to

insufficient funds for intrinsic transaction cost on test ropsten server

I'm trying to follow a tutorial to create an NFT: https://ethereum.org/en/developers/tutorials/how-to-write-and-deploy-an-nft/ I took a faucet here: https://fau

Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.6.0)

I was following Patrick Video "https://www.youtube.com/watch?v=9oERTH9Bkw0&t=5700s" where I encounter this error at 2:31:20 and the code in that video is al

BSC Testnet addLiquiditiyETH TRANSFER_FROM_FAILED

I'm coding an bep20 token and if I want to add Liquidity with pancakeswap I get the following error: ProviderError: Error: VM Exception while processing transac

Not getting event from smart contract on ethers.js

I have contract this part is simply creating smart contract for NFT. At the end of the createToken() I am emitting event. // SPDX-License-Identifier: MIT OR Apa

Appending strings to JSON Files

consider the following code snippet: let proposals = JSON.parse(fs.readFileSync(proposalsFile, "utf8")) proposals[network.config.chainId!.toString()].push(propo

How to deploy multiple smart contracts using hardhat-deploy

I have two smart contracts that I want to deploy. I want to deploy the first one, then pass the address of the first into the constructor of the second one. I a