Questions tagged [hardhat-deploy]
The hardhat-deploy tag has no summary.
296 questions
0 votes
1 answer
75 views
How to deploy a smart contract on a local chain via hardhat?
I've made a new smart contract and my final goal is to deploy it on a local chain and then see its initial supply in my wallet on metamask using hardhat. Following this tutorial, I've added a custom ...
0 votes
0 answers
29 views
Developing a hardhat fund me smart contract TypeError: Cannot read properties of undefined (reading 'length')
i am deploying the code hardhat-fund-me on sepolia network and getting error TypeError: Cannot read properties of undefined (reading 'length'). i don't the reason because i have checked all the things ...
0 votes
1 answer
49 views
ProviderError: max code size exceeded Contract code size is 28370 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon)
i have gone through all the questions and solution related to this error but still getting them same error. here is detailed warning message also Warning: Contract code size is 28370 bytes and exceeds ...
0 votes
1 answer
47 views
How to get contract event information out of a transaction receipt using ethers.js?
I'm working with hardhat/ethers.js and is running a simple test of getting an argument of an emitted event of a contract via ethers.js. I have a simple test contract which has a function to emit an ...
1 vote
1 answer
43 views
console.log() is working everywhere, but log() stops working after the if-else block in my deploy script
Here's my deploy script: const { network, ethers } = require("hardhat"); const { developmentChains, networkConfig, } = require("../helper-hardhat-config"); const { verify } = ...
0 votes
1 answer
47 views
Unable to see Contract code after deploying contract to Sepolia
I deployed a simple contract to Sepolia using Hardhat ignition but I am not seeing the contract code in Etherscan. My contract : // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; // ...
1 vote
0 answers
74 views
How to prevent error(s)? Either "Error: expected 0 constructor arguments, got 1" or "ProviderError: Contract creation without any data provided"
When the contract will deploy locally on developmentChains (hardhat environment) with the following script: deploy.js const { network, ethers } = require("hardhat") const { developmentChains,...
0 votes
1 answer
49 views
Thirdweb writeContract not working on hardhat node
Im using local hardhat node for deploying my contracts and using Thirdweb writeContract to execute a registerUser function from my smart contract, I've added the contract address, ABI, clientid and ...