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
1answer
94 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
2answers
129 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
41 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
1answer
268 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
163 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
16 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
16 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
1answer
118 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
16 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
43 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
132 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
86 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
38 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
39 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
27 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
23 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
26 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
22 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
51 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
25 views

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

Does there exist a standard for a DAO interface?
1
vote
0answers
480 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
34 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
16 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
286 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
128 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
278 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
67 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
28 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
8 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
34 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
183 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
23 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
14 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
10 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
30 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
23 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
15 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
14 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
27 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
76 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
205 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 ...
2
votes
1answer
62 views

Interesting Contract Creation Transaction

I am TOTALLY new to all of this, but slowly trying to learn the basics of contract creation. I've been going through on Etherscan and looking at contract creation transactions to understand them a bit ...
0
votes
1answer
42 views

Newbie Contract Creation Question

Complete newbie here so thanks in advance for tolerating the ignorance that follows. I'm starting from the very beginning learning how to create and deploy my own tokens. And I'm going through and ...
2
votes
1answer
102 views

What happens if i deploy a contract to an address that already has eth?

I know it is possible to calculate the contract address in solidity by using the create2 opcode. Let's say I transfer 1 ether to a random address. Then I deploy a contract with a payable transfer ...
0
votes
0answers
122 views

Minting ERC20 token fails because of zero address even though address is non-zero

I'm building an ERC20 token using OpenZeppelin's ERC20 contract. My token constructor looks like this: constructor() ERC20( "Token", "TKN" ...
0
votes
1answer
20 views

Error Occurred while changing compiler version

below is my contract with compiler version >=0.6.0. when I change the compiler version ^0.8.2 I am getting error as: Return argument type address is not implicitly convertible to expected type (...
1
vote
2answers
7k views

How is OpenSea able to allow sellers to list NFTs for free, and without gas fees?

Besides the usual 2.5% commission, NFTs minted on OpenSea are known to be free to list with a price since OpenSea does not take custody of the NFT anytime during the sale process. Does it though as ...
0
votes
0answers
18 views

Does checking entries in mapping increase gas cost if my mapping goes larger?

I have a mapping that store an hash from all smart contract transactions (NFT tokens). For every transactions, I need to check if the hash function is NOT in my mapping. If it's NOT in the mapping, I ...
0
votes
0answers
8 views

linking contract deployment process to a html button

It's been a while since i am struggling with this issue in my project. Actually my main purpose is to have my contract deployed by clicking just one button which does all steps we are doing on Remix ...

1
2
3 4 5
27