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
2answers
9 views

Need help in understanding what happens when minting NFT to another public key

I am new to developing on Ethereum, so I hope these questions aren't too dumb. I have a smart contract that allows me to mint an NFT to another public key. Who is the owner of this NFT - me, or the ...
1
vote
2answers
10 views

CONTRACT DEPLOYMENT [duplicate]

I am trying to deploy a contract on ETH Testnet and have been unable to get test ETher. Can anyone assist me on how to get test Ether? I've tried Goerli facucet and Metamask Faucet, all to no avail
0
votes
0answers
12 views

Can't verify ERC721 that compiles in Remix

I have a slightly modified version of the OZ721, but gets rejected by Etherscan with the following: Found the following ContractName(s) in source code : Address, Context, ERC165, ERC721, ...
0
votes
0answers
11 views

how do i search for a contract [closed]

i sent eth to metamask from Kucoin and mytetherwallet, in order to make eth available to trade they are asking for cotract and have looked into this for days and have no clue on how obtain them. I ...
0
votes
0answers
7 views

Is there any verified ERC1155

Hey so am looking for a verified well written ERC1155 Contract with EIP2981 for an NFT Marketplace
0
votes
1answer
12 views

How to save truffle artifact for already deployed contract?

I have several contrats to deploy on different chains. Normally, when I just deploy the contract with truffle-v5 it creates/updates json object of artifacts by the path ./build/contracts/MyContract....
0
votes
1answer
17 views

How much extra gas does a single storage constant add to a contract?

I am considering adding a storage var to my Solidity contract that would represent the "version" that that contract has. However, I am not sure that the added gas cost warrants that. How ...
0
votes
1answer
17 views

What is the problem with how i am going about verifying my contract i just deployed?

Im having troubles verifying and my constructor arguments and ABI have been triple checked. Can anyone assist? here is what im getting on polygonscan. Compiler debug log: Error! Unable to generate ...
0
votes
0answers
46 views

Error: [ethjs-query] while formatting outputs from RPC, when trying to deploy Contract from remix

I get the following error when i try to deploy my smart contract on remix onto the polygon chain: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"...
0
votes
0answers
14 views

Bep20 parse error reflection function

Hi hi got this parse error in my contract could anybody help me to solve it? thanks a lot :) don't mind about token name and token symbol :) pragma solidity 0.5.16; interface IBEP20 { function ...
1
vote
1answer
12 views

How to get multi-return values in Solidity?

I wanna know how to get multiple return values from function in Solidity Thanks!
0
votes
1answer
15 views

How Contract Method Works in Changing State Variable?

So, I'm trying to implement openzeppelin ERC721Enumerable contract. I want to override _beforeTokenTransfer method. Because it was a Hook, I have to call super method like this function ...
0
votes
1answer
8 views

deploying dydxexchange/solo: '"OperationImpl" ran out of gas'

I'm trying to deploy the 'solo' (https://github.com/dydxprotocol/solo) After cloning git@github.com:dydxprotocol/solo.git and resolving all dependencies Contracts compilation is successful, however ...
0
votes
1answer
19 views

Deploying 'dydxprotocol / solo' results "Error: spawnSync /bin/sh ENOBUFS"

I'm running in Amazon cloud9 https://github.com/dydxprotocol/solo running 'npm run deploy_test' At some point of the contracts compilation (maybe the end) I get the ENOBUFS error. Is that something in ...
2
votes
5answers
788 views

having a problem with solc-x version "solc 0.6.0 has not been installed"

I m trying to print out the variable (compiled_sol) as you will see in the code below of the python file named deploy.py so I can deploy my smart contract, but I keep running at this error *****INFO: ...
0
votes
0answers
17 views

Minting throws ERC20: mint to the zero address

I'm building an ERC20 token using OpenZeppelin's ERC20 base contract. // SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import &...
0
votes
1answer
76 views

How do I set a gasPrice with ethers deploy script?

I'd like to set a gasPrice in my deploy script, so I could deploy and let miners pick up my transaction when gas is low. Like deploy my contract over night while I'm sleeping to save money. How can I ...
0
votes
1answer
24 views

Can you use smart contract 'instances' rather than deploying each new contract?

My apologies in advance for this noob question, I think a scenario might be the best way to ask: I have a simple escrow smart contract that facilitates the buying of products. For simplicity sake, the ...
0
votes
0answers
12 views

How to get address of Ethereum Alarm Clock contract on a private ethereum network?

I have deployed EAC as described here: How to deploy Ethereum Alarm Clock contract on a private ethereum network? How can I get the address of the contract deployed? Btw, mine is deployed to hardhat ...
0
votes
1answer
21 views

How a smart contract persists data and upgrading a smart contract code

I have finished a course on solidity and the blockchain itself and there are some concepts I don't have clear yet. Could anyone confirm these assumptions?: When we deploy a smart contract, its code ...
0
votes
1answer
9 views

How To Decode Contract When only Know Address Contract, No ABI? [duplicate]

I know the contract address. Unknown ABI . So how do I Decode that contract.. I use bytecode-decompiler in EtherScan but It only decodes Function unknow. So how to Decode the full code Contract . ...
0
votes
1answer
13 views

Error: exceeds block gas limit / transaction underpriced

When I call the function .send({ from: accounts[0], gas: "5000000000" }); and attempt to deploy my contract, I get an :Error: exceeds block gas limit." When I switch to a much lower ...
0
votes
0answers
5 views

abi from ropsten.etherscan.io site vs Truffle abi

I have initially deployed an openzeppelin upgradeable Smart Contract (SC) on my local Ganache blockchain using Truffle, referring in my Dapp to the abi that is generated to a local file (everything ...
0
votes
1answer
78 views

0x exchange v3 debugging (execution reverted, more details inside)

I am trying to swap the erc721 token for erc20 using the 0x protocol which I deployed on the testnet. Using the following script to perform the swap: /** * Local, Data & Env imports * Exchange....
0
votes
1answer
173 views

Brownie: Constructor Sequence has incorrect length, expected 1 but got 0? [duplicate]

Following this tutorial: https://youtu.be/M576WGiDBdQ?t=18945 (timestamped for your convenience!) When I run brownie run scripts/deploy.py --network rinkeby I get back File "brownie/_cli/run.py&...
0
votes
0answers
84 views

gas fee the deployment cost of 10,000 nft tokens in the remix IDE is very high

gas fee the deployment cost of 10,000 nft tokens in the remix IDE is very high, is it possible to bypass this or to use your computer's power ? is this possible or are there other ways to deploy ...
0
votes
1answer
11 views

Setting Correct Liquidty Lock Value

I am looking to deploy a test contract and want to know what values i should enter to set the liquidity lock to either 7 days and 30 days. I need to input a numerical value in uint256 format. Can ...
0
votes
0answers
12 views

I deployed a contract and no matter what I do it will not allow me to verify it what so ever

pragma solidity ^0.8.5; import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol'; contract eveo is ERC20 { address public admin; ...
0
votes
0answers
9 views

Can I use an existing (deployed) contract on ethereum mainnet instead of deploying myself? (NFT)

I'm trying to learn how to mint NFT's in an economic way. I have some experience with smart contracts but it's a while ago. I have looked for an answer to this question but could not find it. I have ...
0
votes
0answers
18 views

Error when deploying to Mumbai Test net "gas required exceeds allowance"

I've written a very simple smart contract in Solidity and I'm trying to deploy it to the test net to make sure that I have not made any mistakes or anything when writing my code. The smart contract is ...
0
votes
0answers
36 views

How to determine exactly how much gas is needed for deploying a smart contract before deployment?

I want to determine exaclty how much gas is needed to deoploy a smart contract. there is a estimateGas() in Web3 api, and also properties with same name in solc output. but why estimate? as far as I ...
0
votes
1answer
84 views

Cancelling truffle migrate to mainnet. With previous pending transactions that have low gas prices

I am exporting my smart contract to the Ethereum mainnet and I am using Truffle to export my smart contract. However when deploying I was trying out multiple parameters and as a result have 11 ...
0
votes
1answer
37 views

constructor doesn't trigger on deployment

I have a problem that I don't understand. I wrote a token contract that will be used as a reward for a yield farming contract. The thing is that the constructor doesn't trigger when I deploy it with ...
1
vote
2answers
233 views

Error "Invalid transaction envelope type: specified type" while deploying a smart contract through MyEtherWallet

I have a written a smart contract in Remix. It was possible to deploy this contract on Ropsten through Remix Injected Web3, and also to interact with the smart contract through Remix. Now I am going ...
1
vote
2answers
65 views

How can I reference a deployed library in my solidity contract

Suppose I have a contract that uses a library, which has already been deployed to the blockchain at a certain address. Is there a way to reference that deployed library in the contract similar to ...
0
votes
1answer
44 views

DeclarationError: Identifier not found or not unique. "contract Ownable is Context "

I´m trying to compile an smart contract created in cointool using REMIX, but it shows the following error and I didn't know how to solve it. Could you please help me? This is error message: ...
0
votes
0answers
16 views

How to deploy compiled contract on chain?

I have compiled my contract using solc. Now i have 2 files file.bin and file.evm. How to deploy them on bsc chain? Is this even possible to deploy compiled contract?
0
votes
1answer
45 views

What happens to the balance of the contract account?

I am just having issue understand the concept behind smart contracts. I understand that EOA triggers a tx to a contract account and that the hashcode calls a program on the EVM (a separate entity to ...
1
vote
1answer
55 views

Would it be possible to create a fork of Ethereum or Ethereum Classic where only few smart contracts can be deployed after offchain debates(forums..)?

I would like to know if it would be possible to create a Fork of Ethereum or Ethereum Classic where only few smart contracts can be deployed? The goal is to create a fork and launch a brand new ...
1
vote
0answers
15 views

transfer from one contract to another

// ContractA function nice(address to) public payable { require(_to.send(_value), ERROR_SEND_REVERTED); } I also have a contractB which was deployed with EIP-1167. Now, The problem is that when ...
0
votes
1answer
40 views

how to add closing and opening function bet per match in soldity?

source code:https://github.com/laronlineworld/bettingMatch/blob/main/bettingMatch.sol How to open and close bet per match function bet(uint16 _matchSelected, uint16 _resultSelected) public payable { ...
0
votes
1answer
33 views

what is the relationship between contract accounts and smart contracts?

I am confused; some textbooks refer to account contracts as smart contracts while others have different sections. Are these two concepts the same! To the best of my knowledge, contract accounts are ...
0
votes
0answers
54 views

how remix can deploy my smart contract to the development local Geth (also Ganache) node without a private key

I am using remix IDE for developing and testing smart contracts. I also run a Geth node in dev mode by the following command: geth --http --http.corsdomain="http://localhost:8080" --http.api ...
0
votes
2answers
28 views

Can someone help me to fix the betting, I can't bet on other game match_id once I bet on a match

Thi is the full smart contract:https://github.com/laronlineworld/betMatch/blob/main/betMatch.sol This is betting contract, when betting on id_1, the same address can't bet on id_2. I'm using Game ...
0
votes
1answer
37 views

Creating tokens on BSC mainnet vs BSC testnet

I am starting to test with creating tokens. My contracts deploy correctly in mainnet but fail to deploy on testnet (the transaction gets reverted). What are the main differences between mainnet and ...
0
votes
1answer
42 views

Reference Examples for Amount of Gas (transaction/execution) Cost for Contract Deployment

Please excuse this newbie in advance! I am wondering if anyone would share their experiences on the cost of deploying a contract, be it in on the main net or on a test net or even remix. I understand ...
0
votes
2answers
52 views

Migration to test net works, but not to main net

I am trying to deploy my contract to the ETH mainnet / livenet. Everything works fine for the testnet, and also the dry-run for the mainnet works, but not the actual migration. Here is the output: ...
0
votes
1answer
90 views

Transaction underpriced

I used the search function, but I didn't find a solution. We want to create for our new religious NGO a ERC20 token. I got a sample contract, a Metamask account, went to redmix website and connected ...
0
votes
0answers
27 views

How did two tokens deploy with same address across networks? [duplicate]

A few months ago I deployed a test ERC20 token, called 2BC, to the Ethereum Kovan testnet. This token can be found here: https://kovan.etherscan.io/token/0x938736ab99c0a46bbf8fe7fb06e6f0974902d581 ...
0
votes
0answers
17 views

How to view what arguments were passed to the constructor function of a deployed contract retroactively

Take this Animetas NFT contract for example: https://etherscan.io/address/0x18df6c571f6fe9283b87f910e41dc5c8b77b7da5#code I want to see what values were passed into the constructor function when this ...

1
2 3 4 5
27