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
1 answer
25 views

Redeploy safe with same address on OP

I deployed the Safe on Ethereum using this factory: 0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2. Now, I'd like to deploy the same Safe address on Optimism. Could you please provide guidance on the ...
solidity-dev's user avatar
0 votes
1 answer
24 views

Methods not appearing when printing contract but do appear on Etherscan

I have a goerli testnet contract you can check out here. I'm trying to call executeFlashLoan using a javascript function using web3js, but the code acts as if the function doesn't exist. However, it'...
Trent Kennelly's user avatar
0 votes
0 answers
4 views

How to put .opezeppelin folder at desired directory in hardhat?

I am using Openzeppelin upgradable with hardhat. By default the plugin store .openzeppelin folder at root but I have running multiple environments so would like to set .openzeppelin folder at the ...
Ajay Yadav's user avatar
0 votes
0 answers
25 views

Foundry default sender when deploying

I'm using scaffold-eth2 with foundry as a base framework but when trying to deploy I am getting this error: You seem to be using Foundry's default sender. Be sure to set your own --sender. No ...
Kai Feinberg's user avatar
0 votes
0 answers
89 views

unsupported addressable value (argument="target") - [email protected] and @openzeppelin/[email protected]

When I create an OpenZeppelin ERC721 Smart Contract using OpenZeppelins Smart Contract wizard builder, I get an error when trying to deploy the smart contract to my local network using hardhat. I have ...
Eric B's user avatar
  • 11
0 votes
1 answer
14 views

Send selected token (the one you deployed) with web3js

How to send a transaction of a token that I have in my wallet other than the default one like ether in Ethereum without a contract method just with web3js?
seojunchian's user avatar
0 votes
1 answer
55 views

Unable to deploy on Eth mainnet

i done all the steps and when im connecting to "Injected provider" its still asking to be on EVM version: shanghai. i want to deploy the CA on the mainnet.
TryingToDeploy's user avatar
0 votes
1 answer
21 views

Controlling Contract

Using truffle and makes me use truffle console but I dont want to and wouldnt either. Is there any other way interact with contracts and controlling their propreties and everything with an app or ...
seojunchian's user avatar
1 vote
0 answers
13 views

Can't deploy contracts on Mumbai

I'm trying to deploy one smart contract on Mumbai with truffle but It gives me this error Compiling your contracts... =========================== > Everything is up to date, there is nothing to ...
Yanosh's user avatar
  • 113
0 votes
2 answers
34 views

Failing to deploy any Contract

I am unable to deploy any contract, including the example contract shown below: // contracts/Box.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // Import Ownable from the OpenZeppelin ...
PupSt4r's user avatar
  • 47
1 vote
1 answer
78 views

I need help from Expert Dev for POS bot [duplicate]

I recently received a code and deployed it. it sent 0.2 eth which is succesful and is visible in the contract transaction. I hoped to generate some passive income with with this POS Bot. The problem ...
TXN crypto's user avatar
0 votes
0 answers
29 views

Deploying On Remix Returned Error 32000 Gas Issue?

So i am trying to publish a smart contract using a guide. https://github.com/tanishbaansal/legendary_token/blob/main/Legendary.sol When i am trying to deploy to livenet it gives me the following error,...
Jim Mike's user avatar
0 votes
1 answer
55 views

Error when deploying my contract and interact with him

Here is the error message : Deploying, please wait... BaseContract { target: '0x80f4D1df2Da11Ca9437A01519d3972d07E54A43E', interface: Interface { fragments: [ [ConstructorFragment], ...
Marsattak's user avatar
0 votes
2 answers
19 views

Trying to deploy simple smart contract in a local nodejs, mocha environment but receiving error from: 'npm run test'

I am trying to deploy a simple smart contract for testing. Attached are the output of: 'npm run test' as well as my test.js file and my package.json file I hope its something obvious sorry if this is ...
bakayaro's user avatar
0 votes
0 answers
17 views

UniswapV2Router02 exceeds size limit of 24kb so how to delploy UniswapV2Router02 to testnet? [duplicate]

I'm trying to deploy UniswapV2Router02 to one of testnets https://github.com/Uniswap/v2-periphery/blob/master/contracts/UniswapV2Router02.sol I continuously get ProviderError: max code size exceeded. ...
Łukasz Johnnie Wolski's user avatar
0 votes
1 answer
27 views

My fund was stuck at ParaSpace, multi signer A&B initiated the code on@safe, but C said they were doing sth else, can someone help me?

It was a long story, i mistakenly sent 12eth to Para. https://etherscan.io/tx/0x72ef5f105ec1c40f917d92aa48caafe24448d9d8507c303ee9a66cbad2c0e983 but somehow para side set up this https://app.safe....
wonderX's user avatar
1 vote
1 answer
122 views

Identify if a token contract was deployed using Create2

Is there a way to analyze a token contract and determine if it was created using Create2?
ether_explorer11111's user avatar
0 votes
1 answer
36 views

How do I remove Gas limit on Solidity Code

I am new at Solidity and Blockchain. I Have written this solidity code to send all NFTs in wallet. contract MultiERC721Transfer { // Mapping to keep track of approved contracts mapping(address ...
Daniel's user avatar
  • 1
0 votes
0 answers
23 views

creation of PairFlash errored: Error encoding arguments: Error: types/values length mismatch (count={"types":5,"values":11

Getting this error when attempting to deploy a contract that reads in three addresses and two tuples creation of PairFlash errored: Error encoding arguments: Error: types/values length mismatch (count=...
user avatar
0 votes
1 answer
46 views

Undefined contract address with simple deployment

I'm trying to get the address of a deployed contract, but I'm getting undefined. This is how I'm deploying: const Init = await hre.ethers.getContractFactory("InitUpgradeV2"); const init = ...
dNyrM's user avatar
  • 713
2 votes
1 answer
197 views

Failed to parse as type `uint256`: a character is not in the range 0-9

I am following Patrick Collins Smart Contract Lottery development and trying to run the deploy script test net ( sepolia ) but I am getting this error Error: Failed to parse as type `uint256`: a ...
Iftikhar uddin's user avatar
1 vote
2 answers
62 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?
user124711's user avatar
0 votes
0 answers
10 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 ...
Aritra Ghosh's user avatar
0 votes
2 answers
61 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 - ...
ImBatman's user avatar
0 votes
2 answers
157 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 ...
Lucas Moskun's user avatar
1 vote
1 answer
22 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 ...
Arkonomi's user avatar
1 vote
0 answers
36 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: ...
António Gonçalves's user avatar
2 votes
1 answer
92 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 ...
Alexander Herranz's user avatar
0 votes
1 answer
25 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
Mustshank's user avatar
1 vote
0 answers
15 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....
justinsacco's user avatar
0 votes
2 answers
267 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 ...
EGstacking's user avatar
1 vote
1 answer
15 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 ...
OnlyMe's user avatar
  • 13
1 vote
1 answer
46 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 ...
Osama Elghazaly's user avatar
1 vote
1 answer
136 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 ...
Yann's user avatar
  • 36
1 vote
1 answer
106 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 ...
Frantz M.'s user avatar
1 vote
2 answers
42 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 ...
Paul Spencer's user avatar
0 votes
0 answers
27 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 ...
BluePlanet's user avatar
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 ...
PhGeek's user avatar
  • 1
1 vote
0 answers
36 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 ...
jds250's user avatar
  • 11
1 vote
0 answers
84 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: ╔═══════════════════╗ ║ ...
kihiuFrank's user avatar
1 vote
1 answer
32 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....
imbot's user avatar
  • 11
2 votes
0 answers
40 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
Nguyễn Lâm's user avatar
0 votes
0 answers
18 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 ...
111Seven's user avatar
0 votes
1 answer
175 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/...
Philiplima's user avatar
0 votes
2 answers
78 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 "...
Kumo's user avatar
  • 1
0 votes
1 answer
735 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: ...
MASHUKUR RAHMAN's user avatar
1 vote
2 answers
720 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=...
Brrazzerss's user avatar
0 votes
0 answers
48 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/...
john's user avatar
  • 1
2 votes
0 answers
196 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 ...
Peter's user avatar
  • 166
0 votes
0 answers
298 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 ...
AresColin's user avatar

1
2 3 4 5
34