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
1
vote
0answers
8 views

Is there situation when using constants instead of literal values in the code will make the contract deploy more expensive?

I was reading a smart contract code in solidity and I found some magic numbers (literal values as function arguments or in some expressions). My first impulse was refactor it to use named constants ...
1
vote
0answers
14 views

How much liquidity is needed to introduce new ERC20 on uniswap?

How much liquidity is needed to introduce a new ERC20 on uniswap? For example for 250 billion tokens of new ERC20 contract "X" how much it would cost to create a pool so the 1 "X" ...
0
votes
1answer
25 views

Contract not properly deployed with Remix

Can someone help me deploy a token contract with Remix? I try to deploy this contract using remix and this is the result. The contract deployed does not appear to be my token contract. How can I ...
0
votes
0answers
8 views

Reeusing later contract after deployment

I have deployed a erc20 generator contract on remix on a testnet network everything worked fine and I could play with the contract functions in the bottom of "Deploy and Run transaction" ...
0
votes
0answers
18 views

JSON-RPC error when deploying contract

I am really new into contracts and tokens, I wanted to learn how to deploy a contract, so I grabbed someone else's contract and tried to deploy it on BSC. I was following tutorial on youtube and ...
0
votes
0answers
34 views

How to send correct SwapExactEthForTokens params types on ethers/web3.js?

I need to know how to send correct paramaters / paramater types as in what does the parameter type has to be is it a hex number , a string ? help would be massively appreciated. Notes: 1)i cant set ...
1
vote
0answers
11 views

Accessing a public mapping from a deployed Ethereum Contract

I'm trying to get my Contract to interface with the already-deployed CryptoPunksMarket Contract, seen here: https://etherscan.io/address/0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb#code Specifically, I ...
0
votes
0answers
5 views

Sending my token when I receive ETH in my wallet [closed]

My idea is to create a token that can accept ETH or other currencies, as soon as my wallet receives the transfer send to the wallet that carried out the transfer X quantities of my Token. The idea is ...
0
votes
0answers
13 views

definition of base has to precede definition of derived contract

I have two different files which are Project1.sol and Project2.sol Project2.sol is like: import "./Project1.sol"; contract Project2{ address newProject1Address =address(new ...
0
votes
1answer
101 views

How to set a custom gwei / gas price on uniswap/sdk Javascript using ethers.js module?

Im building an app to do trades on uniswap using ethers module. ive created contracts and imported the router and the factory contracts using this code: const factory = new ethers.Contract( ...
0
votes
0answers
44 views

{ code: -32000, message: 'invalid sender' } - Truffle deployment with Infura endpoint to Rinkeby

I am having trouble with deployment of a project contract to the Rinkeby network using @truffle/hdwallet-provider and an Infura endpoint. Here is the code for deploy.js: const HDWalletProvider = ...
0
votes
0answers
9 views

Problems with ERC20 token [duplicate]

i trying to deploy an token on remix and i got this error message: CompilerError: Stack too deep, try removing local variables. --> bestTokenEver.sol:1027:80: | 1027 | (uint256 rAmount, uint256 ...
0
votes
0answers
36 views

Airdrop contract not working [closed]

I deploy this airdrop contract https://testnet.bscscan.com/address/0x25148e8f49fb8614df47e9b0d4c25dcae6b1f44f#code to send a multi-transaction of token in a short airdrop I've deployed the airdrop ...
0
votes
0answers
8 views

DeclarationError: Identifier not found or not unique. Two contracts in the same file

This is the Contract that I want to use a function of: contract Origin{ uint transfer_amount = 0.1 ether; address payable owner = xxx; function invest() external payable { owner....
0
votes
1answer
74 views

Trouble using Remix to deploy to BSC TestNet

Hey yall im getting this error when trying to deploy to smartchain testnet Gas estimation failed Close Gas estimation errored with the following message (see below). The transaction execution will ...
0
votes
1answer
32 views

Cant verify Smart Contract deployed with Remix

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface ...
0
votes
0answers
16 views

How to avoid price dump inside the code of a token

I'm planning to create my own token (Binance Smart Chaine C.) my first attempt was succesfull. But I'm trying to figure out how to avoid price dumping by whales. A Solution would be if i could adjust ...
0
votes
1answer
248 views

“execution reverted” Error when deploying Safemoon fork on Rinkeby

I keep getting this error message when trying to deploy a Safemoon fork. There's no other information provided. Code is here https://bscscan.com/address/0x8076c74c5e3f5852037f31ff0093eeb8c8add8d3#code ...
0
votes
0answers
14 views

Truffle when is deployer.link required for migrate

In truffle quick start, its contract MetaCoin has dependency of library ConvertLib. Then in the deployment file, deployer.link(ConvertLib, MetaCoin) is manually added, and if deployer.link is deleted, ...
0
votes
0answers
15 views

approval ERC20 standard front-running

In the following article Link, we read: Token owner just needs to make sure that first transaction actually changed allowance from N to 0, i.e. that the spender didn't manage to transfer some of N ...
0
votes
2answers
127 views

Can not deploy source code (Flatter Solidity file which I copy from Etherscan) on Remix ! Any helps?

[The IPFS link to see source code] (http://dweb.link/ipfs/QmVcFrLDPrEY8sveEdXnib6etMtes8z12GsNo21vbfdtiv) The error I got when try to deploy SAFEMARS contract : creation of SAFEMARS errored: Cannot ...
1
vote
0answers
13 views

Deploying Migrations.sol file in mainnet

I've seen some tutorials about deploying a smart contract to mainnet using Truffle. In those tutorials they are also deploying Migrations.sol contract to mainnet. What is the purpose of doing that? I ...
0
votes
0answers
14 views

Timeout error on deploying to private network

I am currently attempting to deploy a smart contract to a private ethereum testnet that I set up using Geth. I have Geth running in a separate terminal, set to my local ip and port 30303. From a ...
0
votes
0answers
9 views

Vyper Smart Contract deployment using web3.py, Clique PoA

I am new to Blockchain Dapp development so bear with me if I sound a bit out of court. Coming from a Python background, I am trying to use web3.py to create, deploy and interact with vyper ^0.2.0 ...
0
votes
0answers
23 views

RangeError: Maximum call stack size exceeded or Contract code size over limit, yet this is just a copy of a contract already deployed

I am trying to create a DeFi app that works with PAXG gold token. But in order to do this, I need to first be able to deploy a copy of PAXG on my local testnet (Ganache). I have forked the github and ...
2
votes
1answer
21 views

Can I Specify gas fees in the smart contract?

Deploying my contract on rinkeby cost ~12 USD in gas fees (using truffle cli). Is it possible for me to specify gas fees/set a limit in the smart contract so it costs me 0.5 USD, but takes longer to ...
0
votes
1answer
14 views

“Uncaught ReferenceError: TodoList is not defined” as I tried to call Todolist.deployed() in truffle console

I was trying this Beginner tutorial on smart contracts and solidity. I typed truffle compile, truffle migrate and they ran without any error and I got my gas cost used up in Ganache. When I opened ...
0
votes
0answers
12 views

Failing to deploy complied contract

This contract is straight from the solidity docs. But am failing to deploy this: // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract Owned { constructor() { owner = ...
0
votes
1answer
37 views

Big discrepancy between the cost of deploying to the test net and the main net

I have a simple 100-line contract with 6 functions that I want to deploy to the main net. When I deploy it to the Rinkeby test net through Truffle, I get the following result: Summary ======= > ...
0
votes
0answers
17 views

Deploy a contract (factory) with web3 based on the connected wallet?

A big newbie into solidity here. I’ve managed to compile and deploy (with truffle) a ContractFactory from OpenSea repository. Long story short the part with the deployment is this if (...
0
votes
0answers
9 views

How would I create a function where 3% of transactions gets sent to an address I assign?

I am creating an erc20 token that will serve as the currency between online communities, and I want to have an ethereum address that accumulates a 3% fee from all the transactions.
0
votes
1answer
28 views

Do I need a wallet to deploy a smart contract into Ethereum network?

I am new to Ethereum world and I would like to know if developers who desire to deploy their smart contract in the Ethereum mainnet or testnet, need to create previously a digital wallet with real or ...
0
votes
1answer
17 views

Problem with smart contract's constructor instantiating another smart contract

I have the following two smart contracts in the same ".sol" file: Credentials and Proposals. Every Proposals smart contract should refer to a single Credentials smart contract, in order to ...
0
votes
1answer
19 views

Build with multiple solc versions?

My tokens and basic setup scripts are built in solidity 0.8.0 and I just downloaded GSN with OpenZeppelin because I need a platform which will fund users' few things. Now I can't compile because it ...
1
vote
0answers
15 views

how to decode/encode ipfs for contracts

It's known that IPFS can use 2 types of CID, v0 and v1. In my contract, I let users store bytes data parameter. They can store some simple text on it or even pass the ipfs hash. This question is about ...
0
votes
1answer
21 views

What needed for the deployment and approvement of smart contract creation transaction?

I attach the following image. Once a user creates a digital wallet (for example in MetaMask), then they receive a private key and a public address of their account as outputs. Then, after having ...
1
vote
2answers
42 views

What's the possible errors (or warnings) that a developer can face when deploys a smart contract into the Ethereum network?

it's my first post here. I would like to ask, what's the possible errors that a developer can face while trying to deploying their smart contract into the Ethereum network. For example, can it be &...
0
votes
0answers
18 views

How to deploy a new Smart Contract from an existing contract?

I'm trying to develop an Smart Contract that programatically creates/deploy new ERC20 Contracts, when an user call a function. I need to know the new deployed contract's address to return it to the ...
0
votes
1answer
17 views

Does this Smartcontract work?

I have a contract, it only shows data on etherscan only "0x". I want to ask if it still works or not? and can interact with that contract? . contract is only 1 tx is to create smart contract
0
votes
1answer
22 views

Assigning addresses while publishing contract in Solidity

I was recently viewing a DApp on GitHub. The following is a part of .sol address contractOwner; address withdrawWallet; function contractName(address _contractOwner, address ...
5
votes
3answers
522 views

Hardhat - How to interact with a deployed contract?

I can deploy a contract using ethers and Hardhat with the following: const myContract = await hre.ethers.getContractFactory("SomeContract"); const deployedContract = await myContract.deploy()...
2
votes
1answer
38 views

How to deploy a contract with Rust?

I'm using Rust with crate web3 0.15.0. (Is there a better library to use?) My goal is to deploy contracts and call functions in them using programs I've written in Rust. I have two simple functions, ...
3
votes
0answers
34 views

how do I know that NFT is from the right person

I understand the NFT (at least solidity part).. There's something that's bugging me though. Let's say someone made a super great cat(cat1), published it to ipfs, then called the ERC721 contract and ...
2
votes
1answer
121 views

Implementing AMM DEX similar to Uniswap/SushiSwap

I’m new to blockchain development and have been interested in the Uniswap/sushiswap/pancakeswap/etc. projects for some time. I’m trying to build my own project as a learning exercise. I’ve deployed ...
0
votes
1answer
19 views

Opinions on setting variables via constructor vs setter function?

I haven't found any opinions about this online so far, so I'm soliciting opinions here. What are the pros/cons of setting variables in the constructor of a Solidity contract versus having no ...
0
votes
0answers
130 views

Uniswap Router deployment error: “UniswapV2Router02” — Cannot create instance of UniswapV2Router02; no code at address 0xxxxxxxxx

I am trying to fork Uniswap and deploy on Ropsten testnet for educational and testing purposes. From what I gathered, it seems that we need to first deploy the UniswapV2Factory contract, followed by ...
1
vote
1answer
31 views

Error while deploying contract to the Ropsten testnet

I'm trying to deploy a contract (called "FilesDetailsManager") to the Ropsten Testnet using Truffle and Infura as provider. But when I type into terminal truffle migrate --network ropsten, I ...
3
votes
1answer
56 views

how does Ethereum singing request work?

What's the need so that some dapp websites ask you to sign messages via metamask the first time you get on their website ? as I read, it's so that they make sure you get authenticated. So you sign the ...
1
vote
0answers
41 views

Reusing Ethereum deployed smart contracts

I have developed and deployed my token and stacking contracts on the ethereum main net, now I want to deploy them on the Binance Smart Chain(BSC), my question is Do I need to modify my current written ...
4
votes
3answers
97 views

What are the available options (March 2021) for bridging tokens across the chains?

Actual problem in mind I would like to release a token for the Island DAO. I'm worried that ETH gas prices are prohibitively expensive - if I use ETH, the smaller guys will not come. But ETH is the ...

1
2 3 4 5
25