Questions tagged [contract-deployment]
The act of pushing a compiled smart contract in byte code to the Ethereum blockchain.
1,682
questions
1
vote
1
answer
5
views
Is it possible to deploy a smart contract using multi-sig? i.e. contract will deploy only when multiple parties approve the tx?
Is it possible to deploy smart contract using multi sig fetaure?
0
votes
0
answers
8
views
I am not getting the starknet plugin from the plugin section
I am completely new and I want to deploy a contract on the eth network with my argent wallet. But I am surprisingly not getting ant starkenet plugin in the plugin menu. And no not even if I use other ...
0
votes
2
answers
50
views
provide steps to deploy this contract from solidity by example
When i tried deploying this contract using 10 ethers, and then providing :
claimPayment()
-> amount - 9000000000000000000 i.e 9 ethers
-> nonce - 123
-> signature - ...
0
votes
2
answers
26
views
Does hardhat ethers contract.deploy automatically handle gas estimation? Or what is best practice for mainnet deploy?
I am using ethers as part of hardhat and I'm preparing to deploy to mainnet. I am using the gas-estimator plugin, and I see how much gas is used during each test/testnet deployment. However, so far, I ...
1
vote
1
answer
20
views
How to call a function from a separate contract
I have a already deployed contract and it has a withdraw() function.
And i want to create another contract that first send some ETH to the target contract and then call the withdraw() to withdraw ...
1
vote
0
answers
14
views
"ProviderError: transaction would cause overdraft" with gasPrice of 1 wei
I have a hardhat deployment script that has been working for months.
But a few hours ago, it stopped working, and I keep getting gasPrice related errors.
I tried:
gasPrice: "auto"
gasPrice: ...
2
votes
1
answer
22
views
It is safe to use allowUnlimitedContractSize: true?
I'm trying to deploy with Hardhat a Smart Contract which has too much code, even after refactoring and using libraries. The only solution would be a total refactor following the diamond pattern, or ...
0
votes
1
answer
10
views
How to calculate the cost of deploying a new liquidity pair on uniswap [duplicate]
how can I calculate the cost of deploying a new liquidity pair on uniswap? Ty
1
vote
0
answers
7
views
Mainnet fork deployment - Error: *** Deployment Failed *** "Migrations" hit an invalid opcode while deploying
I am trying to deploy contracts on a mainnet fork. I have my fork running with the command
ganache --fork https://mainnet.infura.io/v3/$INFURA_API_KEY --wallet.unlockedAccounts=$MY_ACCOUNT --chain....
0
votes
2
answers
53
views
Issues with deploying smart contract using Sepolia test net
I am having issues deploying my smart contract in hardhat using the sepolia test net. I keep getting the "Network sepolia doesnt exist" error as well as "Option moduleresolution must be ...
1
vote
1
answer
14
views
Gnosis not signing on the contract
We have sent all our contracts to the Gnosis safe which we believe would be safe for the protocol but we are having a problem.
We are currently trying to enable the contract to mint our NFTs but it ...
1
vote
1
answer
41
views
Retreiveing Bytecode of another smart contract through a smart contract
I am working on a project and I was wondering if its possible to retrieve the bytecode of another smart contract on Ethereum though my smart contract ?
So basically, I will have a copy of that smart ...
1
vote
1
answer
47
views
Deploying with hardhat : ProviderError: INTERNAL_ERROR: could not replace existing tx
I am trying to deploy pancakeSwapv3 contracts on goerli network. I have been able to do it successfully on hardhat network and also on BSCtestnet, using the pre existing deploy script provided in the ...
1
vote
1
answer
60
views
Unable to connect to Testnet Sepolia
Command:
npx hardhat --network sepolia run scripts/deploy.js
Getting error messages:
* Invalid account: #0 for network: sepolia - private key too long, expected 32 bytes
* Invalid value undefined ...
1
vote
2
answers
29
views
Using meta transactions and a smart contract that creates contracts, how can I affect who the contract creator is?
I have a smart contract RevenueSplitter which is used to create ERC-721 contracts via a CollectionFactory using the minimal proxy pattern. We recently switched to using meta transactions to initiate ...
0
votes
0
answers
25
views
Hello, Can you help me for issue? (ETH CONTRACT DEPLOY)
I am learning to deploy contracts to improve myself. I copied a contract that was actually deployed and deployed it on the Goerli testnet. However, I have these parts and I wonder why. It has an ...
0
votes
0
answers
19
views
How to manage smart contracts
I am trying to figure out how to list and manage my published smart contracts for a specific project using hardhat. I'll appreciate any help to clarify these aspects.
Are all versions published or ...
1
vote
0
answers
28
views
failed to deploy smart contract on my private network
I created a private network of POA, and I use clef to seal blocks like this:
I have successfully run this chain becaues it can produce blocks and I can create transactions between 2 accounts, and ...
1
vote
0
answers
49
views
How do I solve error 'missing revert data in call exception'?
I'm trying to withdraw donations from a single campaign. When I click the withdraw button it loads then reverts with the error;
Error occurred while withdrawing funds Error:
╔═══════════════════╗
║ ...
1
vote
1
answer
21
views
Please somebody help me with this error in getting transactionReceipt : "TypeError: contract.deploymentTransaction.wait is not a function"
const ethers = require("ethers");
const fs = require("fs-extra");
async function main() {
// http://127.0.0.1:7545
let provider = new ethers.JsonRpcProvider("http://127.0....
2
votes
0
answers
32
views
I can't deploy contract on eth mainnet
I have deployed this code on many different chains with success except for ETH mainnet and Sepolia.
return error: Transaction mined but execution failed
https://github.com/lamxoan92/ct/blob/main/a.sol
0
votes
0
answers
12
views
Ganache-cli unable to create database to store blockchain
I am new to smart contracts, web3. I am trying to deploy a smart contract to ganache-cli and store the blockchain in a database. When I run the below code I am able to deploy the contract but unable ...
0
votes
0
answers
73
views
Guidance on writing a Foundry Test for a deploy script! (Lesson 9: Raffle contract)
I am following the new foundry course by Patrick and was wondering if I could get tips on how to test the deploy script - https://github.com/Cyfrin/foundry-smart-contract-lottery-f23/blob/main/script/...
0
votes
1
answer
41
views
Verification of contract using Brownie
I'm at the point of a solidity course where I need to get the API key token from etherscan.io.
I followed all the steps, but my code breaks when I use Brownies deploy function with "...
0
votes
1
answer
251
views
Could not coalesce error. invalid opcode
I am trying to deploy a simple storage smart contract to Ganache using ethers. The contract is getting deployed but still I am getting this error and can not access the contract functions.
the error:
...
1
vote
1
answer
356
views
Error: factory runner does not support sending transactions DEPLOYMENT
Hi im tyring to deploy my contract bug following error
Deploying TaskContract...
Error: factory runner does not support sending transactions (operation="sendTransaction", code=...
0
votes
0
answers
42
views
I'm new to this and wanted to see if this contract is legit and not a scam but I'm thinking its a scam I just want a better understanding
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.6;
// Import Libraries Migrator/Exchange/Factory
import "github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/interfaces/...
2
votes
0
answers
132
views
Gas costs for contract deployment
Whenever I deploy a contract on Sepolia, there is an additional gas cost I haven't quite figured out. The flow as I understand is:
21,000 gas (base)
32,000 gas (contract creation)
4*(zero-value bytes ...
0
votes
0
answers
155
views
How can I find Smart contract address deployed in sepolia testnet?
I'm finding contract address of SwapRouter and Quoter which is the contract of uniswap version 3.
Of course Goerli address is in uniswap doc. But I want to know the address in sepolia.
If anybody know ...
0
votes
1
answer
87
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&...
0
votes
1
answer
35
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 ...
1
vote
1
answer
18
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 ...
0
votes
1
answer
15
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\...
0
votes
1
answer
63
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(...
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 ...
1
vote
0
answers
29
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....
0
votes
0
answers
20
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.
0
votes
2
answers
562
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 (...
0
votes
1
answer
25
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 "...
0
votes
1
answer
117
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 ...
0
votes
0
answers
123
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 ...
0
votes
0
answers
19
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 ...
1
vote
0
answers
73
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/...
0
votes
0
answers
73
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/...
0
votes
0
answers
73
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 ...
0
votes
1
answer
102
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 ...
0
votes
1
answer
129
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 ...
0
votes
0
answers
17
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 ...
0
votes
1
answer
103
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 ...
0
votes
1
answer
16
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 ...