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
11 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
7 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
15 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
17 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
13 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
41 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
18 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 ...
SMdG's user avatar
  • 1
0 votes
1 answer
24 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
  • 101
0 votes
1 answer
21 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
24 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
31 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
20 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
13 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
39 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
13 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
24 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
31 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
10 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
  • 101
0 votes
0 answers
20 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
19 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
48 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
31 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
18 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
25 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
63 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
25 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
9 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
0 votes
0 answers
65 views

Error with Withdrawing on remix-ethereum-compiler.io into Metamask Account [duplicate]

I was using the https://remix-ethereum-compiler.io but I cannot withdraw my ethereum that was transfer with metamask. It is possible to recover via withdraw? Or any available app to do it? Thanks
MhiKea's user avatar
  • 1
0 votes
0 answers
14 views

cannot estimate gas error when deploying with solidity-create2-deployer

I continuously get the cannot estimate gas error when attempting to deploy a contract using the solidity-create2-deployer contract and I'm clueless as to where the error arises. find my code below ...
web3lisa's user avatar
0 votes
0 answers
15 views

How to write contact from Etherscan

I am trying to interact with this one inch contract 0x1111111254EEB25477B68fb85Ed929f73A960582 on Etherscan. I have never interacted with contacts this way so please start from the basics. I want to ...
Robert Isaacs's user avatar
0 votes
0 answers
19 views

Issue with Retrieving Contract Address After Deployment in Hardhat

Description: I'm encountering an issue while attempting to retrieve the contract address after deployment using Hardhat with ethers v6. Below is a summary of my setup: roject Name: hardhat-simple-...
Amine Merad's user avatar
0 votes
1 answer
19 views

Can not deploy a contract in a private clique " Not enough gas left for transaction"

I have installed geth version 1.13.8. Genesis block: { "config": { "chainId": 212121, "homesteadBlock": 0, "eip150Block": 0, ...
Sole's user avatar
  • 1
0 votes
2 answers
947 views

Please let me know if this smart contract is a crypto scam or not? [duplicate]

I found This code in an online forum and it claims to have some ok results with an arbitrage technique using mempools and frontrun. They claim it was generated using ChatGPT, but I am wary to just try ...
Eragonrider's user avatar
0 votes
1 answer
345 views

Eip1559NotSupportedError

"before each" hook for "deploy contract": Eip1559NotSupportedError: Invalid value given "Eip1559NotSupportedError". Error: Network doesn't support eip-1559. This is my ...
Brendansz's user avatar
0 votes
0 answers
31 views

im building an auto crypto profit generator. i need some help making it work right. (incomplete code attached)

to start with, im already deep into the process of creating this thing, ive already spend $1000 on this contract (dont feel bad for me, thats one paycheck and i needed to learn the deploying and ...
SoullessScythe's user avatar
0 votes
0 answers
17 views

Is there any tool that can replicate smart contracts found on explorers?

A tool that can replicate smart contracts on different EVM-compatible networks without requiring the source code would be valuable for quick experimentation and testing. It would allow users to easily ...
ferit's user avatar
  • 507
0 votes
1 answer
264 views

"ProviderError: execution reverted" I get this error when trying to deploy to Sepolia

I need a bit of help with my code here. Maybe someone more experienced can eye the bug, I've have to give up and ask here. So, I am trying to deploy to Sepolia and I am getting this error and I've ...
mhanga's user avatar
  • 1
0 votes
1 answer
103 views

etherscan showing 0 balance, transaction showing as success, but balance in my contract as 0

Not sure why etherscan.io showing as 0 balance. My Transaction hash# "0x2653135e31407726a25dd8d304878578cdfcc7d69a2b319d1aca4a37ed66956a" is showing as susccess with 0.47 eth. but when i ...
arewe's user avatar
  • 1
0 votes
2 answers
159 views

Why is my contract not deploying on the Sepolia testnet? It shows that the Sepolia network doesn't exist

am encountering an issue with deploying my contract on Hardhat. The error message indicates that the Sepolia network does not exist. I have provided links to screenshots of the error messages for ...
Bahloul mubarik's user avatar
1 vote
1 answer
17 views

How do the big protocols deploy their smart contacts?

I wanted to know the production-level practice for deploying contracts. Is it the same way we deploy via hardhat or is there any other method big protocols use? Any github repos would help.
Solidity Nerd's user avatar
0 votes
0 answers
11 views

Contract is not deploying

const ethers = require("ethers"); const fs = require("fs-extra"); async function main() { const provider = new ethers.providers.JsonRpcProvider("http://172.27.128.1:7545&...
Muhammad Farhan's user avatar
0 votes
0 answers
28 views

Can i get funds back if I sent weth to a smart contract

Copy of chat with dydx chat, they have been helpful so far but they are saying there is no solution, just trying to get a second opinion.. " Hello thanks for your help, I have a very big problem. ...
M Alva's user avatar
  • 1
0 votes
1 answer
28 views

How to identify the address which deployed smart Contract in etherum

If someone deployed smart Contract in the etherum to swap tokens , how to identify what is address which deployed the contract? And which is the exchange used to deploy contract? And if in single ...
Lucky's user avatar
  • 1
0 votes
0 answers
16 views

Why can't the gas be estimated?

I'm trying to use another contract to give my leasingContracts unique IDs, but I can't call the function as the code crashes, and I don't understand why. This is the contract for IDs: // SPDX-License-...
Stefan Han's user avatar
0 votes
0 answers
14 views

DeclarationError: Undeclared identifier. contracts/GorillaNFT.sol:98:5: | 98 | _setTokenURI(tokenId, tokenURI); CAN ANYONE HELP PLZ?

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/...
Mike's user avatar
  • 1
0 votes
1 answer
81 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
27 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
1 answer
12 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
185 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
1 answer
629 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
  • 111

1
2 3 4 5
35