Questions tagged [contract-deployment]

The act of pushing a compiled smart contract in byte code to the Ethereum blockchain.

Filter by
Sorted by
Tagged with
0 votes
2 answers
148 views

contract.deploymentTransection.wait(1) not working in ethers version 6.4.0

Error is in this line const deploymentReceipt = await contract.deploymentTransection.wait(1); Entire code I am using to deploy contract and wait const { ethers, run, network } = require("hardhat&...
Aditya's user avatar
  • 11
0 votes
1 answer
43 views

Error deploying Solidity contract: Expected 0 constructor arguments, got 6 in hardhat

I am trying to deploy a Solidity contract using a deployment script in Hardhat. However, I encountered an error during the deployment process.I'm using Hardhat as my development environment, and I ...
Web3Phoenix's user avatar
1 vote
1 answer
20 views

Possible to verify a contract address without having access to the creator address?

My previous question relates to this linked question where a user answered by saying he verified the contract address on behalf of the creator without really having access to it. Publish and verify ...
Murathe's user avatar
  • 11
0 votes
1 answer
17 views

Error HH700 during Contract deploment

Compiled 1 Solidity file successfully TypeError: no matching function (argument="key", value="deployed", code=INVALID_ARGUMENT, version=6.6.1) at makeError (D:\d-drive 3.0\...
Aryan Sharma's user avatar
0 votes
1 answer
97 views

Simple contract fails to deploy to Sepolia

I am trying to deploy a very simple contract to Sepolia. Here is the code: pragma solidity ^0.8.18; contract Object { bytes32 private UID; bytes private Desc; constructor(...
Philip Rutovitz's user avatar
0 votes
0 answers
17 views

Someone can help me with thist issued: Gas estimation errored with the following message (see below)

Some one can help me to solve this issue, I'm student and I try to deploy a Smart Contract for a practic, I must Deploy 3 contract, When I Try to deploy the last one it show me an error "Gas ...
Willy Gonzalez's user avatar
1 vote
0 answers
32 views

How to deploy a contract to the same address in testnet?

My code for deploying a contract import { ethers } from "hardhat"; async function main() { const CF = await ethers.getContractFactory('abc'); const c = await CF.deploy(); await c....
Camila326's user avatar
0 votes
0 answers
24 views

Getting this error while deploying contract on truffle

I am using command {truffle migrate --network 'Network Name'} to deploy on truffle. I don't know where this error is comming from. Someone who has worked on truffle, kindly help.
Manav Notnani's user avatar
0 votes
2 answers
814 views

TypeError: Cannot read properties of undefined (reading 'map')

Hello Everyone Here is my next js code actually I try to fetch the event data from smart contract but when I mapping the data this error is occur TypeError: Cannot read properties of undefined (...
Yasir Saeed's user avatar
0 votes
1 answer
29 views

Token name not displayed after deployment

// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; import "...
Igho Terry's user avatar
0 votes
1 answer
180 views

Error while deploying smart contract on mainnet of ethereum

when I deploy a smart contract on Goerli testnet then it will easily be deployed but when I try to deploy the same contract on mainnet then it gives me this particular error even I have ethers in my ...
Afaq Ahsan's user avatar
0 votes
0 answers
192 views

Cannot read properties of undefined (reading '0')

I am following FreeCodeCamp's javascript Blockchain/SmartContract course. Facing issue at lesson 9 staging test. Contract deployment and unit tests are running fine. Running mocha test on sepolia ...
mohmaya's user avatar
0 votes
0 answers
25 views

Openzeppalin Governance wizard reuturns "ProviderError: max code size exceeded"

openzeppalin wizard Governance error i am using the copy and pasted code from openzeppalin for there governance smartcontract but returns error smart contract // SPDX-License-Identifier: MIT pragma ...
jia-ayo's user avatar
1 vote
0 answers
120 views

Unable to deploy multiple contracts to arbitrum nova via foundry

I've written a script to deploy multiple contracts to arbitrum nova via foundry enviroment // SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "../lib/forge-std/src/...
Ghinter's user avatar
  • 21
0 votes
0 answers
112 views

"contract creation code storage out of gas" always getting this error while deploying on eth mainnet

I'm trying to deploy this simple NFT contract https://github.com/NishantPacharne/new-contract/blob/main/contract.sol .. I was able to deploy correctly on goerli testnet https://goerli.etherscan.io/tx/...
Nishant Pacharne's user avatar
0 votes
0 answers
91 views

EIP 1559 transaction structure

I am trying to develop a web3 library for deploying a contract, interct with the smart contract functions etc using the RPC methods in Golang. I know there is go-ethereum but doing it for my own ...
Anju Balakrishnan's user avatar
0 votes
1 answer
123 views

Can't create UniswapV2Pair from constructor on Ethereum Mainnet

I want to create a Uniswap Pair in a constructor() block of my token smart-contract. However, when I try to do this, I get "error":"execution reverted". Perhaps these nuances will ...
ppduster's user avatar
0 votes
1 answer
199 views

Invalid opcode error in ganache 2.7.1

I have created a smart contract and deployed it using web3.py by connecting to the ganache 2.7.0 version and deployed the smart contract in it but suddenly there was a update in ganache which I did ...
Abisheg Sridhar's user avatar
0 votes
0 answers
18 views

Truffle migrate didn't migrate contract despite calling truffle migrate --reset

Here's my 2_gimmy_migration.js const Gimmy = artifacts.require("Gimmy_NFT.sol"); module.exports = function (deployer){ deployer.deploy(Gimmy); }; I had tried truffe migrate --reset ...
YaiMiChiLaoMa's user avatar
0 votes
1 answer
219 views

Alter deploy address for contract created with `new` keyword

I have a forge test that contains new MyContract();. However the address that MyContract is deployed to just so happens to be in use by another contract, so the test fails. Is there a way to alter the ...
Milk's user avatar
  • 391
0 votes
1 answer
17 views

General practice on reservation of deployment wallets

Is there a consensus (or a generally accepted recommended practice) about reserving a token contact deployer wallet (to avoid deployments on other production contracts, or even development deployments ...
Rego's user avatar
  • 111
0 votes
0 answers
84 views

replacement transaction underpriced while deploying

I am attempting to deploy a contract to an address that I generated. I use https://sepolia.infura.io/v3/ as my test net. This is my code. package main import ( "context" "...
pigfox's user avatar
  • 125
1 vote
2 answers
136 views

Trying to deploy a ERC721 NFT to Goerli but Remix shows gas error

I'm, following the tutorial here https://docs.alchemy.com/docs/how-to-create-an-nft // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC721/...
Syafiq's user avatar
  • 11
2 votes
1 answer
106 views

Is the deploying of the contract anonymous?

Is the deploying of the contract anonymous? is it possible to find the owner who posted the contract? Is the only mention of it a link to the wallet from which the smart contract was first replenished ...
newbeee's user avatar
  • 21
0 votes
1 answer
38 views

Using methods from github

Is it possible too return value in this way? This is for an understanding of the mechanism of using a method from github Thank you! // SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import &...
newbeee's user avatar
  • 21
0 votes
1 answer
185 views

Deployed smart contract works perfectly on Goerli, gives error when deployed to Mainnet

I deployed my contract to goerli many times, and it runs perfectly, all functions are working, but on the Mainnnet deployment, I'm getting an We were not able to estimate gas. There might be an error ...
Zsofia Tubel's user avatar
2 votes
1 answer
58 views

Is there any way to selectively include logic in a contract during its construction?

We have a contract that adheres to the ERC-3156 standard, which provides flash loan functionality. We intend to deploy this contract multiple times, and in certain cases, flash loan capabilities are ...
Paul Razvan Berg's user avatar
1 vote
0 answers
28 views

When I create a presale token how do the inputs? [closed]

I created a pre-sale token and I want to input the total supply, name, symbol and all that. How can I do that on locally?
jacobs david's user avatar
0 votes
0 answers
45 views

How to get 3 level chain of referrals and pay commissions to the 3 level up Grand Referrals in solidity smart contract?

I am using the solidity smart contract to make the MLM system I am facing the issue of storing the grand referrals and sending them the commissions if any address that is purchasing membership has the ...
Sardar Ahmed Khan's user avatar
1 vote
0 answers
297 views

How do I deploy a smart contract from a gnosis safe address

I want to deploy a contract using a gnosis safe address so the gnosis safe is the owner. I'm using this script https://github.com/greenlucid/yubiai-contracts/blob/main/howto.md. But its asking for the ...
Nacho's user avatar
  • 11
1 vote
0 answers
168 views

Error: DeclarationError: Undeclared identifier

I have a deployed contract. Now I want to make changes through the Remix, but there was some kind of error. please help me to solve this error. thanks. // SPDX-License-Identifier: MIT pragma solidity ...
Gencho's user avatar
  • 21
1 vote
1 answer
56 views

Does transferring tokens to a non-existent address on an EVM network result in the creation of an Externally Owned Account?

I plan to deploy a contract on an EVM-compatible network at a specific, predetermined address. I intend to use Gnosis's pre-signed transaction in safe-global/safe-singleton-factory repository to ...
Hyunduk Shin's user avatar
2 votes
0 answers
130 views

Best practices for Hardhat deployment script?

As a newcomer in Solidity, I am trying to understand and create a deploy script that I will use for deploying my contracts. Stack: Ether.js + hardhat + javascript Here is the code that I came up with: ...
CC_Zio's user avatar
  • 27
0 votes
0 answers
769 views

Gas required exceeds allowance(0)

I've seen a lot of posts on this error, but I can't figure out what's wrong with my contract and why this is happening. I have my contract code below: //SPDX-License-Identifier: MIT pragma solidity ^0....
src2012's user avatar
  • 11
0 votes
1 answer
561 views

Deploy to Sepolia Infura Foundry: Solidity Scripting

I'm trying to deploy my contract with Foundry Solidity Scripting to Infura on the Seoplia test net. But Im getting this weird issue that appears to be related to the Infura API Key (formerly Project ...
currenthandle's user avatar
0 votes
0 answers
13 views

Need help with contract deployment process

After paying successfully for a contract deployment, the contract is not showing up at my metamask id on checking it with etherscan. Also, no NFTs attached to it got uploaded. Kindly help with this ...
Pulkit's user avatar
  • 1
2 votes
1 answer
56 views

unable to verify etherscan contract may be due to high optimize runs

I have used high optimize runs as 999999999 while deploying contract.. I need to verify contract on etherscan but it has range from 0-1000000 .. what should i do?
Abhishek Bengani's user avatar
0 votes
0 answers
49 views

TrroubleShooting "events" (event.arg) with smart contracts, ethers js, and deploy scripts?

I am getting the following error message in regards to my script below. Please keep in mind the deploy scripts have already been successfully run and the addresses successfully exported and saved in ...
Blockpain's user avatar
  • 143
1 vote
2 answers
35 views

Can't find deployment bytecode for contract created from factory - How to retrieve it?

I have a factory contract that deploys child contracts, to complete a challenge on Ethernauts. I would like to retrieve the deployment bytecode for one of the child contracts, but I'm having trouble ...
Danny B's user avatar
  • 323
0 votes
1 answer
79 views

Trouble Shooting with Hardat, Solidity? Can you help?

I have been struggling to figure out this for a while and maybe someone can help? It is a bit lengthy to look through but if you have a good understanding of smart contracts and hardhat it may be easy ...
Blockpain's user avatar
  • 143
0 votes
4 answers
433 views

Understanding Approve and TransferFrom - Confused

I know there is a lot of threads on this but i did search and couldn't find the answer. Hoping someone can help me better understand Approve and transferFrom with ERC20 tokens. If I want to approve ...
Blockpain's user avatar
  • 143
0 votes
1 answer
57 views

Please Help- Been Stuck for days!! Creating a contracts to interact with previously deployed contract (Hardhat & Solidity)

Hoping someone can assist me. I have a contract I deployed and verified on the Goerli testnet. Its a simple ERC20 contract (contract myToken is ERC20) in which I minted all the coins to the deployer ...
Blockpain's user avatar
  • 143
2 votes
1 answer
445 views

Deploying smart contract using CREATE2, bytecode, salt - getting different addresses on different chains?

I would like to deploy the same contract to multiple chains under the same address using CREATE2. DeterministicDeployFactory: https://docs.alchemy.com/docs/create2-an-alternative-to-deriving-contract-...
Mars Robertson's user avatar
2 votes
1 answer
362 views

Send eth by deploying a Contract ( Ethers.js )

Is there a way to send eth to another wallet at the same time with deploying smart contract? let factory = new ethers.ContractFactory(abi, bytecode, signer); const contract = await factory....
MAD's user avatar
  • 21
0 votes
1 answer
185 views

Deploy contract to goerli infuria without signing the transaction

Is there a way to deploy a contract on goerli infuria, using web3.js and metamask so I don't have to sign the transaction, or is it possible to use metamask to sign it, without having to provide the ...
Daniel Reed's user avatar
0 votes
0 answers
93 views

Contract deployment issue: insufficient funds for intrinsic transaction cost

I have been trying to deploy contract on custom chain based on geth and had problem with deploying contract with errors "Insufficient funds for intrinsic transaction cost" and "contract ...
gun bos's user avatar
  • 25
2 votes
2 answers
1k views

How do i deploy a contract on chain using bytecode

I'd like to deploy a smart contract that can take in bytecode as the argument and deploy that contract. Currently, the only way I see examples of is that they take a specific contract that is already ...
bpop's user avatar
  • 23
0 votes
1 answer
38 views

DAI from Impersonating Accounts

i'm running a hadhat node on forked ethereum , i would like to add some usdc and dai to my test account from an Impersonating Account . How to do that ?. Many thanks.
adam mr's user avatar
  • 61
1 vote
1 answer
413 views

Compiler error: Stack too deep

I am getting this error when trying to deploy my smart contract using zkSync but on a different chain (Polygon Mumbai): CompilerError: Stack too deep. Try compiling with `--via-ir` (cli) or the ...
Falcon Stakepool's user avatar
1 vote
0 answers
69 views

Convert this connection code from Loom testnet to Goerli Testnet

This is a utils/common file for connecting to Loom testnet. const fs = require('fs') const Web3 = require('web3') const { Client, NonceTxMiddleware, SignedTxMiddleware, LocalAddress, CryptoUtils, ...
Vidhan Mangla's user avatar

1
2
3 4 5
34