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

Uniswap v2 running out of gas when deploying the Factory on ganache

I am trying to deploy the Uniswap v2 Factory contract on my ganache test network. I have compiled these contracts with my own compiler. But everything I attempt to deploy the Factory, I receive this ...
0
votes
0answers
8 views

Option for Supply

I tried copy and pasting this one on remix then deployed it on the test net but unfortunately im not getting any info about the supply. Here's the link of the contract. https://pastebin.com/raw/...
0
votes
1answer
12 views

The second contract is not getting deployed in migration

const Input = artifacts.require("Input"); const Register = artifacts.require("Register"); module.exports = function (deployer) { deployer.deploy(Input, "test_name") ....
0
votes
1answer
19 views

How to deploy a new version of a smart contract to a testnet?

So I have deployed a contract to the Rinkeby testnet but I have added some new features to it and I've tried deploying the contract again but it just says the following: √ Fetching solc version list ...
0
votes
0answers
25 views

How to call functions from a deployed NFT Contract in Solidity?

I already did a lot of researches to solve this problem. I want to call deployed NFT Contracts functions, for example this contract: https://etherscan.io/token/...
0
votes
1answer
23 views

Can you reserve your token name and symbol before releasing to mainnet?

Is it possible to list our token to reserve the name and symbol before our contracts are released on mainnet?
0
votes
1answer
34 views

Error! Invalid constructor arguments provided. Please verify that they are in ABI-encoded format

Update: so these 2 lines in my code seem to be causing the problem and removing them got everything to work but I still need to include them so if someone can figure out why they are breaking that ...
0
votes
0answers
13 views

Is it safe to publish to IPFS when deploying in Remix?

Could hackers use the metadata? Should I redeploy the contract? Since smart contracts cannot be changed it seems like a bad idea to let people see the source code/meta data despite mine being imported ...
1
vote
1answer
24 views

Brownie cannot locate deploy.py script

I have python installed on my system (Windows) with Anaconda from a prior course I had taken which may be the root cause of the issue. I'm at the stage where I need to run a deploy.py script to deploy ...
1
vote
1answer
17 views

Using solc to compile contract that imports local OpenZeppelin contracts

I am trying to compile and deploy a contract based on OpenZeppelin using Node.js app.get("/", (req, res) => { const input = fs.readFileSync("./BaseContract.sol", "utf8&...
0
votes
0answers
15 views

Any way to revert setMaxTxPercent to original?

I deployed a token using cointool. Wanted to change the maxTxAmount - tried to do it from bscscan (write contract) instead of through cointool admin. I mistakenly thought setMaxTxPercent in the 'write ...
0
votes
0answers
24 views

Fork uniswap including interfcae

I am trying to fork uniswap. I have successfully deployed uniswap-core and uniswap-periphery on my local machine (ganache).For this, I could get many tutorials and articles. But could not find a ...
0
votes
0answers
99 views

Not being able to retrieve the contract deployer's address

I want to retrieve the getManager address, which essentially deploys the contract. It works fine on remix but is not showing up on my localhost. // import logo from './logo.svg'; import './App.css'; ...
0
votes
0answers
15 views

Not getting any output after deploying contract in rinkeby through web3.js. But in localhost using ganache-ui getting all the outputs

this is my contract - pragma solidity ^0.5.17; contract Lottery { address public manager; address payable[] public players; constructor () public { manager = msg.sender; } function enter() ...
0
votes
1answer
15 views

Having trouble converting json to abi encoding

I'm trying to convert the following json to abi code using https://abi.hashex.org/ [ { "inputs": [ { "internalType": "string", "...
0
votes
0answers
26 views

How to Verify smart contracts deployed on polygon scan?

we have deployed solidity contract to polygonscan, but for some reason, the smart contracts with imports cannot be verified. Has anyone else experienced this?
0
votes
0answers
12 views

Error in construtor when deploying: ERC20 approve method

I have this code in my constructor, which is raising an error on deployment: constructor(){ owner = msg.sender; wETH.approve(msg.sender, type(uint256).max); //Approve the owner to transfer ...
0
votes
1answer
18 views

Truffle compiler version not changing

truffle.js: var HDWalletProvider = require("truffle-hdwallet-provider"); var mnemonic = ""; module.exports = { networks: { testnet: { provider: () => new ...
1
vote
0answers
26 views

How much does it cost to deploy a smart contract on Etherum mainnet?

I've just completed building my first smart contract in Solidity and I am ready to deploy to the public. I want to deploy to mainnet but I'm being told that I don't have enough funds to deploy. On the ...
0
votes
1answer
38 views

Deploy address error Remix Solidity contract flashloan

I'm learning Solidity. Trying to implement this contract: Flashloaner.sol pragma solidity =0.6.6; import './UniswapV2Library.sol'; import './interfaces/IUniswapV2Router02.sol'; import './interfaces/...
0
votes
0answers
24 views

Truffle compiler version error

I keep getting an error that my truffle is currently running version 0.5.16. Error: Truffle is currently using solc 0.5.16, but one or more of your contracts specify "pragma solidity >=0.8.4&...
0
votes
1answer
21 views

Can you directly port ETH mainnet contract to BSC?

Can you directly port ETH mainnet contract to BSC ? Also, does Infura work with BSC ? Does Web3 work with BSC ?
0
votes
1answer
16 views

etherscan verification for newly deployed contracts

from my UI, I call a contract function through ethers.js that deploys a new contract. It's like user comes to the UI, clicks a button that calls a contract function and then, that contract function ...
0
votes
0answers
19 views

Best way to Deploy smart contracts without Infura

I'm wondering what will be the best way to deploy our smart contracts. If i use Infura API, they are only serving 100 thousand requests per day.Due to that our team lost a client while performing a ...
0
votes
0answers
21 views

Contract's admin keys/ownership relations

I have debated with myself about smart contract's admin keys and ownership and how this can occur in different ways. I will try to point some of the findings that I have found: OpenZepellin community ...
0
votes
1answer
18 views

Question around smart contract with fees

Working on our first smart contract/token deployment. We're trying to avoid team tokens/marketing wallets/etc. and instead use a small transaction fee for the dev/team. We've tested in Ropsten, and ...
1
vote
1answer
38 views

What are these contracts buying and selling tokens for profit within seconds?

I have invested in many tokens but one thing I've noticed is that there is usually an address that buys some tokens and sells almost immediately for some profit or sometimes for a very minor loss. ...
1
vote
0answers
11 views

Is there an EIP or ERC for a DAO implementation contract?

Does there exist a standard for a DAO interface?
1
vote
0answers
107 views

Tutorials on how to make generative NFT on the Ethereum blockchain using Blender 3D

I’m looking for a tutorial that covers how to create generative art for the Ethereum blockchain using Blender 3D. I’ve only been able to find the coding portions but no tutorials on how to implement ...
0
votes
0answers
12 views

Saddle.Exchange Docker image will not open

Please forgive me. I'm wildly inexperienced. This my first attempt at forking a project. This is for educational purposes. I've successfully deployed the saddle front end using vercel, and now I'm ...
1
vote
0answers
14 views

Transaction data for contract creation: What's the data before the contract bytecode? [duplicate]

When a contract is deployed, the bytecode of the contract shows in the raw transaction data for the transaction that created the contract, along with constructor arguments after the contract bytecode ...
0
votes
2answers
102 views

Error: Cannot find module 'ganache-cli'

I am very new to programming in JavaScript and Solidity and I am trying to run a test from Windows PowerShell. In my folder, I have all these files I open my PowerShell window and I typed npm run ...
1
vote
1answer
45 views

How to input decimal parameter in web3.py?

I have a contract with this abi [ { "stateMutability": "nonpayable", "type": "constructor", "inputs": [ {"name": "...
4
votes
1answer
78 views

how to deploy a smart contract on same address in ethereum and binance

I have a challenge from my client that he wants to deploy a token contract on ethereum & binance but wants to have same contract address ? He has proved to me that it is possible but has shared no ...
0
votes
0answers
52 views

Remix Solidity Static Analysis Issues. Can I deploy?

I need some kind advice on remix Solidity Static Analysis. I have received 48 issues from the contract, which is to deploy a BEP20 Token. None of them are security issues. They are GAS & Economy, ...
0
votes
0answers
13 views

Does pending account nonce affect truffle contract deployments?

I have pending transactions with nonce 0,1,2,3. I am deploying a contract with truffle-cli, with relatively low gas, but enough for it to deploy, successsfully passes truffle's gas checks. But it just ...
0
votes
0answers
5 views

Bypass pending contracts in contract deployment?

I have 1 contract pending, and 1 contract queued for deployment due to low gas fees. I wish to deploy a 3rd contract that will bypass these two. The first contract has nonce 0. Sufficient gas fees ...
0
votes
0answers
8 views

What happens to the funds used in pending transactions?

I have a contract deployment that has been pending for a few days due to very low gas fees. But the amount spent on deployment is shown to be present in my wallet. Can this be used in other ...
0
votes
1answer
28 views

How to clone(fork) a smart contract with only bytecodes deployed on etherscan.io (without abi and source code)? [duplicate]

How to clone(fork) a smart contract with only bytecodes deployed on etherscan.io (without abi and source code)? First, I try to submit the same bytecodes from etherscan.io using web3, but it failed. ...
0
votes
1answer
69 views

JSON-RPC Error - Exection Reverted (-32000) / Empty ABI

I am attempting to deploy a BEP20 contract on BSC testnet via Remix. I am using compiler v6.12 and am successfully compiling my Solidity. However, when I deploy the contract, I am receiving the ...
0
votes
1answer
20 views

Copied Contract

firstly I have limited knowledge of solidity but am trying to learn some basics in understanding how a contract works. I have copied a contract that I am playing around with on ropsten test network ...
0
votes
1answer
10 views

Multiple contract verification error

I am deploying a crowdsale smart contract. I deployed it on testnet.bscscan.com earlier.I had to change the name of the token , so I just changed the name and tried to verify the crowdsale contract ...
0
votes
1answer
9 views

Constructor deploying token to ethereum chain

Suppose I want to deploy my smart contract in the ethereum main network as an erc20. In order for it to be an erc20 one of the requirements is balances[msg.sender] = _totalSupply; Is that right ? Why ...
0
votes
0answers
20 views

Cannot get account list: ERROR: Invalid JSON RPC response:

I am new to solidity and smart contracts and I'm trying to deploy my contract from remix using a web3 environment. I have testrpc running in command prompt. When I try to deploy, I get the error ...
0
votes
1answer
10 views

Editing gas price to limite contract deployment cost?

My smart contract costs 3.65 USD to deploy from truffle-cli. I wish to accomplish this in 2.5 USD. Is it possible to limit the gas price in gwei in truffle-config.js to accomplish this? I don't mind ...
0
votes
1answer
14 views

Calling a function[A] that in turn calls a function[B] from another Contract

I have two Contracts, Domain and Serial deployed separately. NOTE: Most of the code is ommited for simplicity. contract Serial { Domain DOMAIN; //Domain contract is imported and set by ...
1
vote
1answer
12 views

token deployment error with Web3.js

so I'm deploying a basic smart contract with web3js and I'm compiling it with solc. It compiles fine but for whatever reason, it doesn't deploy... Here's my backend... pragma solidity ^0.5.0; ...
0
votes
1answer
13 views

Add ENS domain name to a smart contract?

Is it possible to add a ENS domain (like project.eth) to a deployed smart contract ? If yes, is it compatible with Metamask and Web3js ?
0
votes
1answer
41 views

RuntimeError: abort([object Object]). Build with -s ASSERTIONS=1 for more info

I saw a similar question but does not solve my issue. here is my contract code based on my research. // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <=0.8.4; contract Lottery { /...
0
votes
2answers
59 views

Super Confused Regarding Gas Fees

I hope your all doing well and staying safe. I just finished my first Dapp and Im trying to deploy it to the main net but I am suffering. So my dapp interacts with a super simple contract , the total ...

1
2 3 4 5
26