Skip to main content

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
0 answers
22 views

Gas estimation errored - The transaction execution will likely fail. smart contract Eip838ExecutionError: execution reverted

// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol"; import "@uniswap/v3-core/contracts/interfaces/callback/...
CA.Sanjay Chikkamath's user avatar
0 votes
0 answers
20 views

4 Most Important Questions For Smart Contracts Developers

Hello Smart Contracts Developers Which Blockchain like Etherscan, Bscscan, Polygonscan, Tronscan.... etc that automatically approve new token logo and token value application? Which stable coin ...
Tether Usdt's user avatar
0 votes
1 answer
29 views

How to bypass confirm prompt when deploying smart contracts through Hardhat Ignition?

I am deploying smart contracts using Hardhat Ignition , the new declarative way of deploying smart contracts using Hardhat. When calling npx hardhat ignition deploy ignition/modules/ERC2771Forwarder....
Gaurav Pant's user avatar
-1 votes
0 answers
12 views

Mev Bot Scam or Nah? [duplicate]

So I fell for the mevbot scam on YouTube and deployed a contract from a given script. After funding the contract, I tried to start the bot and I received a “Gas estimation error“. Money is still in ...
Vhybes's user avatar
  • 1
0 votes
0 answers
26 views

I accidentally sent ONDO tokens to its Contract Address

I mistakenly sent my ERC-20 token (ONDO) to ONDO Contract address. Transaction hash is 0xed0ade205a2380adaabb9d2185abcd0313f220b8b381a189bc5d62ba83d3fbf4. Please, I accidentally sent ONDO tokens to ...
Okwudili's user avatar
0 votes
1 answer
60 views

contract deployment success in other network but fails in amoy testnet

I try to deploy contract in amoy testnet, but it failed. I have plenty of balance, and had no problem with provider. This is my failed transaction (https://amoy.polygonscan.com/tx/...
rrrrssss's user avatar
0 votes
0 answers
15 views

How the deployer manages to call function manual swap on a burned liquidity renounced contract and drain more money selling tokens he didn't hold

Deployer sold his tokens and left the project. 10 days later I verify he made another sell from tokens that weren't on his deployer wallet. He called a function "manual swap" and somehow I ...
Martin Saints's user avatar
0 votes
0 answers
15 views

Wait time at "creation of DexInterface pending" process

I've deployed a smart contract via Remix with MetaMask as the injected provider. I'm getting the message "creation of DexInterface pending" but have no idea how long I should expect to wait ...
Jake Boswell's user avatar
0 votes
0 answers
31 views

Deploy script to anvil node foundry

Is it possible to simulate a contract deployment, using a script, to an anvil node but by specifying the localhost in the script itself instead of a flag on the CLI command? Instead of this: forge ...
dNyrM's user avatar
  • 938
0 votes
1 answer
38 views

hardhat upgradeProxy can not deploy new contract. implement contract is extreme old contract

When use upgradeProxy in some of chains(Polygon main, Manta etc) some of chains worked. They can upgrade and deploy a new implement contract. But sometimes, when I run upgradeProxy, my new implement ...
AndrewZzzz's user avatar
0 votes
1 answer
15 views

A smart contract already has a non-zero balance even at the start of its non-payable constructor

Solidity compiler version: 0.8.23 Foundry version: 0.2.0 When deploying a smart contract to a forked url of Sepolia, using: console.log("Contract Balance: ",address(this).balance); as the ...
Mighty_Hotdog's user avatar
0 votes
2 answers
91 views

how to verify the minimum gas fee for deploying a contract on the mainnet?

how to verify the minimum gas fee for deploying a contract on the mainnet? my contract creation failed in Remix IDE, I choosed estimated gas fee and the process were not successfully finished, is it ...
Morty's user avatar
  • 3
0 votes
2 answers
63 views

How to specify an overloaded function for execution using a Hardhat Ignition Module?

I have the following module: function createPoap(m: IgnitionModuleBuilder) { const proxyAdminOwner = m.getAccount(0); const name = m.getParameter('name'); const symbol = m.getParameter('symbol'...
Falcon Stakepool's user avatar
1 vote
0 answers
16 views

When does hardhat-deploy skip a function on the deploy script

When running this script for the second time, the hardhat-deploy library detects that it had already deployed the pool artifact so it skipped that part. It did not skip the pool initialisation. So ...
IBeFrogs's user avatar
0 votes
0 answers
40 views

only replay-protected (EIP-155) transactions allowed over RPC, but i'm deploying a smart contract

I made a spring boot application with web3j, in application.properties i have defined the following: spring.application.name=Web3j-1 ethereum.private-key=myprivatekey ethereum.provider=https://eth....
Fabx's user avatar
  • 1
0 votes
2 answers
43 views

I can't deploy my coin on Remix IDE

I'm trying to write my first smart contract but when I try to deploy it I get this: This contract may be abstract, it may not implement an abstract parent's methods completely or it may not invoke an ...
Erdem Arif Akalin's user avatar
0 votes
0 answers
11 views

Help with addLiquidtyEth keeps returning either transfer_from Failed or OVERFLOw

Im trying to add all tokens to liquidity. It doesnt allow the amount of tokens desired to be more then the total supply so im not sure why it keeps returning 'execution reverted: pancake: OVERFLOW' Im ...
blockchainhelpneeded's user avatar
2 votes
1 answer
158 views

Are there any no-code tools for deploying ERC-20 tokens?

As the title says: are there any no-code tools for deploying ERC-20 tokens?
Paul Razvan Berg's user avatar
1 vote
0 answers
20 views

How is the address of an Base contract computed?

I'm curious when i see some fantastic projects, so I'm doing some experiments to find out the method which used by Base to generate the contract address. Tried with two different methods, and I've ...
Spencer's user avatar
  • 11
1 vote
1 answer
416 views

Deploy proxy upgrade pattern contract using hardhat ignition

I have a contract like this: // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol"; import "@...
user134676's user avatar
1 vote
1 answer
26 views

how do you unstake VGX token?

i had staked my VGX token through their website back in 2021. but now their website is no longer available and i have been told that i have to unstake using etherscan. i tried to use the unstake ...
Feroz's user avatar
  • 13
1 vote
0 answers
14 views

Does `call` opcode panic if less size data is returned?

I was reading the zksync documentation and found the following in the differences section here For calls, you specify a memory slice to write the return data to, e.g. out and outsize arguments for ...
Neo's user avatar
  • 103
0 votes
1 answer
49 views

"ContractExecutionError: Error happened while trying to execute a function inside a smart contract" after calling it via mint button

Contract Code: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/...
Lucky Rajput's user avatar
0 votes
0 answers
23 views

transfer to a wallet while deploying a smart contract

I want to know how to transfer for example 1$ to my address when deploying a smart contract with ethers js v6 here is my code : const provider = new ethers.BrowserProvider(window.ethereum) const ...
diana artist's user avatar
0 votes
0 answers
14 views

Efficient way to find ERC20 token contract deployments in a given time range

Given a time range, say in last 24 hours, I want to get the list of all ERC20 compatible contracts deployed efficiently. Currently, only two ways I can think of are: scan through all transactions and ...
explorer66's user avatar
0 votes
1 answer
32 views

Contract creation confusion -- Unsure when my contract was deployed

I deployed a contract on Fuji Testnet around 3 hours ago, the address is as follows: 0xDb3F493F9D4CdaaDA08E30957c59a0e01CfB2af0 I went to Snowtrace to check it out and received an expected record of ...
Sophie Lee's user avatar
0 votes
1 answer
42 views

Web3.js => _data.trim() is not a function?

Trying to deploy to ganache but keeps giving this error. Error : TypeError: _data.trim is not a function at ContractBuilder.deploy (C:\Users\user\Desktop\lotteryv2\node_modules\web3-eth-contract\lib\...
seojunchian's user avatar
0 votes
0 answers
24 views

I am experimenting with a contract and creating my own router and running into a verification Issue on EtherScan

hope you all are well. I wanted to see if anyone would be able to help me diagnose what I could possibly be doing wrong. Ive read through numerous posts and it seems many solutions have not yet helped ...
Altcoin View's user avatar
0 votes
2 answers
560 views

I found MEV bot on the internet and I want to make sure it is not a scam, please help [duplicate]

//SPDX-License-Identifier: MIT pragma solidity ^0.8.4; // User guide info, updated build // Testnet transactions will fail because they have no value in them // FrontRun api stable build // Mempool ...
sherif elbakry's user avatar
0 votes
1 answer
79 views

Deploying contract through create2 is returning a zero address

In this function I am deploying a contract through create2 and in this NFTImplementation is just a standard ERC721 implementation. The function always reverts due to the address returned from the ...
Surya M D G's user avatar
0 votes
1 answer
162 views

Estimating Gas Cost for Smart Contract Deployment Using Foundry

I'm trying to estimate the gas cost for deploying a smart contract using Foundry. Can someone provide guidance on how to do this accurately?
adam mr's user avatar
  • 131
0 votes
1 answer
25 views

Created CA when there are no logs

Sometimes there are TX that create a Contract but its receipt doesn't contain any logs, for example: https://basescan.org/tx/0xb9d3c35f59132b6172812834a7540de7c49fdb8ff207700f15b5eba3be609808 returns ...
José D.'s user avatar
  • 163
0 votes
1 answer
72 views

"Getting 'Promise { <pending> }' Response When Deploying Smart Contract Using Hardhat - How to Resolve?"

I'm encountering difficulties deploying a smart contract using Hardhat. In my deployment script, I'm using ethers.getContractFactory().deploy() to deploy the BinaryvilleRobotsNFT contract. However, ...
varun_63's user avatar
0 votes
0 answers
39 views

How to make a smart contract/ a third party pay for transaction fees?

I'm trying to create a LiquidStacking smart contract where it would be possible to deposit any amount of ETH. Every time the smart contract's balance reach 32 ETH, it creates a BeaconChainDepositor ...
ASANSON's user avatar
  • 11
0 votes
0 answers
35 views

Time-out when deploying a smart contract

I have two Node.js/ether projects that use the same code and dependencies to deploy an upgradeable smart contract written in Solidity. They use these lines: const contractFactory = new ethers....
mhaeusser's user avatar
0 votes
1 answer
15 views

Wrong type of smart contract being instantiated on using new keyword

I have 2 smart contracts A and B that I have defined in the same file. B is used to instantiate A using the new keyword. However, when I try to interact on Remix with the newly instantiated contract ...
mehak's user avatar
  • 1
0 votes
0 answers
77 views

Error: could not decode result data (value="0x", info={ "method": "retrive", "signature": "retrive()" }, code=BAD_DATA, version=6.11.1)

const fs = require("fs-extra") const ethers = require("ethers") const { JsonRpcProvider } = require("ethers") require("dotenv").config() async function main() {...
Muhammad Arif zafary's user avatar
0 votes
0 answers
18 views

Deployment ERC-6551 registry fails on OP sepolia: contract not recognised. With named imports it does deploy, but with incorrect address

I am trying to deploy the ERC-6551 registry (v0.2.0) on the OP sepolia testnet using forge (0.2.0), following the exact steps as described at the tokenbound.org website: https://docs.tokenbound.org/...
7Cedars's user avatar
0 votes
0 answers
57 views

UniswapV3 Fork with updated POOL_INIT_CODE_HASH

I am trying to modify the the standard tests for UniswapV3 staker, which is deployed with different POOL_INIT_CODE_HASH, but so far the tests that are failing resulting the following Error: Error: VM ...
Mark's user avatar
  • 13
0 votes
1 answer
48 views

I am trying to make my contract get to call approve function of an erc20 token

I am trying to build a contract that allows user to supply/deposit token to the aavae protocol but i need to make my contract get approval of the token amount to be spent by the contract. I tried ...
Salaudeen Sulaimon's user avatar
2 votes
0 answers
19 views

How to Estimate Deployment of a Contract on Mainnet Using Foundry

I'm trying to estimate the deployment cost of a smart contract on the Ethereum Mainnet using Foundry. Can anyone provide guidance or a step-by-step process for making this estimation accurately?
adam mr's user avatar
  • 131
0 votes
0 answers
43 views

Contract deployment costs

I have a contract that when deployed to Sepolia costs ~550K gas to deploy: current gas rate on the mainnet is <50 gwei: yet, when I try to deploy to the mainnet, I am declined on not having ...
shaharsol's user avatar
  • 561
1 vote
0 answers
24 views

What is the RLP encoding of an address whose first byte is 0?

It's technically possible for the first byte of an address in Ethereum to be 0. If this contract then deploys another contract using the CREATE opcode, the address of the new contract will be ...
BackusNaur's user avatar
1 vote
1 answer
70 views

getting address field from assembly

Assume the following solidity code: function caller(uint k, uint v) public { (bool success, ) = address(this).call(abi.encodeWithSignature("callee()", abi.encode(k, v, msg.sender))); ...
Giorgi Lagidze's user avatar
0 votes
2 answers
80 views

Error: incorrect number of arguments to constructor

Someone could help me. Despite the similar questions i read, i don't see what is wrong. Thanks in advance, Claude Here is detailed information about error imac-de-claude:TransactionContract ...
cvan85's user avatar
  • 3
0 votes
0 answers
21 views

Dynamically include data from contract in ERC721 JSON data

Let's say an ERC721 NFT contract includes a mapping: mapping(uint256 => uint16) public nftAttributeA; // uint256 is tokenId, uint16 is an attribute of the tokenId where the nftAttribute is updated ...
Ryan's user avatar
  • 92
0 votes
0 answers
29 views

Uniswap Front Runner Scam [duplicate]

I just found out that I may have been scammed. Yea, I'm fucking silly. I followed one tutorial and just to test it out I started with a small amount, but now I cannot withdraw or start the bot. The ...
Burner2023's user avatar
1 vote
0 answers
123 views

Trying to create a liquidity pool on local network using uniswap's contract's

I am trying to create a liquidity pool on my local network. Here is what I have done so far: I deploy a WETH token I deploy the uniswap factory I deploy the uniswap router using the factory address ...
guiflam's user avatar
  • 11
0 votes
1 answer
56 views

How a Renounced Ownership token makes money for the creator?

This is a simple (newbie) question, lets say one creates a token, renounces ownership and starts the initial selling of it. How would the creator make money?
Gustavo Costa's user avatar
0 votes
0 answers
10 views

How to use contract address in web3js dynamicly with hardhat?

I have an contract but when I deploy with hardhat in artifact json code there s no contract address property but with truffle there was. I wanna use hardhat and use contract address not staticly ...
seojunchian's user avatar

1
2 3 4 5
35