The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
votes
0answers
13 views

After Creation Contcact and receive ETH it answer messagem ERRO and Block Owner [on hold]

After Creation Contcact and receive ETH it answer messagem ERRO and Block Owner It was made with CODE Pattern when Eth was watched like Model to ERC 20 How to cancel or erase contract and Get Back ...
0
votes
1answer
14 views

Kovan contract creation gas limit behavior

I have a fairly large contract that I must create on Kovan network for testing. There is fairly weird behavior occurring when I am trying to create the said contract. Behavior being: whenever ...
0
votes
0answers
14 views

cloning div container number of deployed child contracts time and put their data inside div container

Sorry for the silly question. I have a div container "product-card" , I want to loop the number of my deployed smart contracts time. every time when I loop I want to clone this div container and ...
0
votes
1answer
41 views

Solidity smart contract function in function [closed]

I tried to write a smart contract like the following. There are two function of a contract: the first function makes confirmation of a condition, the second function makes a new contract, if all ...
0
votes
2answers
36 views

app.vote(1, {from: web3.eth.accounts[0] }) not working

I am following a tutorial from Dapp University about building Election Smart Contract. When I run this command in the console: app.vote(1, {from: web3.eth.accounts[0] }) I get the following error: ...
0
votes
1answer
16 views

Is there still a contract size limit?

I have a contract on chain and the deployed bytecode is 36.201KB, but EIP 170 limited the contract size to 24.576KB. Can anyone tell me how I was able to deploy a 36.201KB contract? https://etherscan....
0
votes
1answer
29 views

Cannot deploy new contracts with pending transactions (Ropsten)

I have a very strange and annoying problem. I am trying to deploy a new contract however it just keeps cycling. I have the same problem on the POA testnet and on Ropsten. Please see below: I have ...
0
votes
2answers
20 views

Set contract storage directly at deployment

Is there a way to pre-define a contracts storage when deploying it? Say I want a mapping to be filled with 1000 entries but want to avoid having to pay gas for adding every entry on its own. Since ...
0
votes
1answer
34 views

Need a guide to access my ropsten test network contracts through my command line and not remix

I have written and published a contract on the ropsten test network using remix. Now I want to access the functions of the smart contract from my command line (My PC) and not the remix IDE. Is there a ...
1
vote
1answer
21 views

How to permission (disallow) smart contract deployment on private Ethereum network?

On a private Ethereum network, what is the best way to permission the deployment of who (and what) users can deploy? One obvious way would be increasing the gas cost of CREATE opcode. Yet, I do not ...
3
votes
0answers
36 views

What's the point of Truffle Migrations?

I've been reading a few articles and StackExchange posts (e.g. What are truffle migrations?) about Truffle Migrations, but I still don't get it: why do we need them? It seems they do only one thing (...
0
votes
1answer
17 views

Contract not deploying with web3

I'm writing a web-based DApp with web3, and am trying to get my JavaScript to deploy a contract. I've set up the abi, contract, and bytecode as follows: const trade_abi = [ ... not shown: ABI copied ...
0
votes
1answer
36 views

Transaction being reverted by EVM during contract creation (Web3 / ethereumjs-tx)

Hey guys I am running into an issue deploying a smart contract with Web3 to the Ropsten network. The code is running seemingly correctly, and there is a contract address being created, but if I check ...
2
votes
1answer
27 views

Is the contract metadata automatically deployed on Swarm?

From the solidity docs on contract metadata: You have to publish the metadata file to Swarm (or another service) so that others can access it. You create the file by using the solc --metadata ...
0
votes
1answer
27 views

is it possible triggering a contract on specific date? [duplicate]

Can I trigger a smart contract on specific date? If I deploy a contract today and I want execute some function of that contract tomorrow without any exteral intervention. Is it possible?
2
votes
2answers
59 views

Drizzle and Contract Instances

I am currently developing a dApp with Drizzle on top of ReactJS. My project consists of, basically, 8 .sol files. 4 of them are just abstract contracts that include the functions, structs etc. for ...
0
votes
0answers
31 views

Deploying contract using web3js but failed

I am a beginner for solidity 👶 My question about deploy using with web3js. I have two smart contract and in main contract I have a createContract function which is create a new subtoken contract ...
0
votes
0answers
28 views

Undefined Contract

I am finally able to come up with a compilable code. As I attempt to verify the contract, the Remix - Ethereum output is "undefined". Someone advice me on what to do. My ABI is as follows: [ { "...
0
votes
1answer
34 views

How to remove 2 contracts

I have 2 contracts to be removed 0xc4ba2bbfc1d35d4a6dc37d7764081a1880e5a281 unable to verify source for some reason. 0xf3db7f7f6419bf537fd24eb530b6eace38850c0c contains 0 tokens. How do i do this? ...
0
votes
1answer
72 views

Contract ERC20 creation “pending”

I have created a new ERC20 contract using this generator https://vittominacori.github.io/erc20-generator/ The status is "pending" , 21 hours at this time. Some explanation? Previously, I tried it ...
0
votes
2answers
83 views

Remix Deploy Error encoding arguments

I'm building a simple fund raising smart contract and having problems deploying this through Remix. I'm wanting to set the "goal" and "minimum contribution" values (in wei) during the contract ...
0
votes
1answer
22 views

Is it possible to deploy the ERC721 token on private network for free?

I created a private network with 3 instances (one controller, 2 nodes) based on PoA on AWS. And I checked if my custom ERC721token is deployable by using Ropspan test network. so I have a working-...
0
votes
2answers
50 views

gas required exceeds allowance when deploying ERC721token

I am trying to deploy Smart-contract(ERC721) on my private ethereum network. But I have this issue. Here is my genesis. { "config": { "chainId": 3333, "homesteadBlock": 1, ...
3
votes
1answer
117 views

TypeError: Indexed expression has to be a type, mapping or array (is function (address) view external returns (string memory,string memory…)

I have 2 contracts first one is sub second one is main . First i deploy main and create a new subtoken. Then I want to access my maincontract in subToken contract but I cant :( When I compile this ...
0
votes
1answer
27 views

Why does etherscan show such unusual results for the creation of this specific contract?

Normally, when I browse for the address of a specific contract and then click the contract-creation transaction label, I get: To: [Contract 0x... Created] For example, consider the BNB contract at ...
1
vote
1answer
38 views

How to construct deployable bytecode from runtime bytecode?

For example I want to redeploy/clone a contract to another address but don't have the original source code, so I only have the runtime bytecode stored on the blockchain. If I try to deploy the runtime ...
0
votes
1answer
51 views

How to unlock account to deploy contract without using personal.unlockAccount()?

When I have account keystore file on geth node http://192.168.43.201:8545 , I can deploy a contract like below: const web3 = new Web3('http://192.168.43.201:8545'); ... const contract = new web3.eth....
1
vote
0answers
78 views

Contract not deploying on private network

I have a smart contract a little bit like this: pragma solidity ^0.5.10; contract sc { struct element { uint96 firstKey; uint96 secondKey; bytes32 firstData; ...
-3
votes
2answers
51 views

Trying to create an instance of an abstract contract

pragma solidity ^0.5.0; import 'https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.sol'; contract SubToken{ mapping(address => uint) balances; ...
0
votes
2answers
33 views

what is the transferfrom event signature?

I am currently writing a code that list all types of transactions in a given contract . my plan is to just check for all logs whether the topics[0] == an event signature of a function. and now i am ...
0
votes
1answer
49 views

Web3 0.20 contract deployment

environment: Web3 0.20.7,Infura,node.js(backend) Deploy contract with Web3 0.20.7 pragma solidity ^0.5.1; contract Bang{ address holder; address proxy; constructor (address _holder, ...
2
votes
0answers
33 views

deploying Solidity contract in Remix

I am trying to deploy Solidity contract in Remix for my study purpose. However, I failed to deploy SmartMesh contract in Remix (below, I attach the link for the code): https://etherscan.io/address/...
0
votes
1answer
38 views

Deploy contract didnt resolve the promise

im facing a problem deploying a simple smart contract. When i use ganacha-cli, the program enter in a loop of confimation event, counting from 1. Thats the first problem. Output: Account: ...
0
votes
1answer
22 views

Smart Contract Deployment issue

I am making a smart contract with a Transfer function. function transfer(address _to, uint256 _value) public returns(bool success) { //checking whether sender has enough number of tokens ...
1
vote
2answers
47 views

How to get transaction status (programatically, not etherscan)?

I have a problem when I interact with an Smart Contract, from a javascript webapp. I can execute the transaction correctly when the status is confirmed, but I cannot get any error response when it ...
0
votes
1answer
76 views

Error: Invalid JSON RPC response | ropsten.infura

I'm trying to deploy my contracts to the ropsten test network, but I get this error. the message error : C:\Users\acer\test>truffle migrate --reset --network ropsten Using network 'ropsten'. ...
1
vote
1answer
53 views

truffle migrate --network kovan issue

When I run truffle migrate --network kovan in the terminal the contract deployment doesn't run. Just: Compiling your contracts...==================== >Eveything is up to date, there is nothing to ...
1
vote
0answers
27 views

estimateGas works on Truffle, but fails on geth

I'm trying to estimate the gas required for deploying a smart contract. It works fine in Truffle, but fails in Geth for some weird reason: truffle(develop)> await web3.eth.estimateGas({ data: '...
0
votes
0answers
65 views

Error: types/values length mismatch

I'm following an Ethereum Dapp tutorial in Udemy. I seem to stumble upon an error somewhere early in the course. I was about to deploy my beginner's contract and test it with Mocha when the problem ...
2
votes
3answers
229 views

Pattern to deploy a smart contract from another one without spending twice the gas

It seems that if we want to deploy a smart contract (let's call it Target) from another one (let's call it Deployer) in Solidity via new, we spend a gas amount linear in the size of the deployed ...
0
votes
1answer
45 views

How to deploy a smart contract to actual ethereum network instead of Truffle or Ganache?

I am building a react application using web3 to interface with Ethereum. At a bare minimum, it needs to create a contract, deploy said contract, store a value (i.e. a string: "test"), then later ...
0
votes
1answer
30 views

How risky is it to ask a dev to deploy smartcontract for you?

I’m currently in the process of hiring a dev to develop my token and my smartcontract and deploy it. Will he need my ETH private key to do it ? Can he change the destination of the funds once the ...
0
votes
0answers
99 views

Truffle Contract deployment >> Error: Returned values aren't valid, did it run Out of Gas?

I have a rpc enabled running private ethereum blockchain node with mining enabled. I have connected to it using metamask and have performed some contract interactions (deployment, calling functions,...
0
votes
0answers
18 views

Steps of Uploading of smart contract on the main Ethereum Network

The following link discusses about deploying of smart contract [How To: Deploy Smart Contracts Onto The Ethereum Blockchain1 But it does not say how much it would cost to upload the contract on ...
2
votes
1answer
25 views

Is Contract Deployment analogous to Object Instantiation?

Is deploying a contract analogous to instantiating a plaint old class in OOP and the address returned similar to the memory pointer of the OOP object? Should I be thinking of the ledge as memory to a ...
0
votes
1answer
118 views

Truffle error when deploy a contract

Does anybody know how to solve this? I've try to compile and deploy my contract to get the address, why obtained this error Error: 1_initial_migration.js ====================== Deploying '...
-1
votes
1answer
26 views

Truffle ganache error

I have this error~! Contract has not been deployed to detected network (network/artifact mismatch) Can you help me thank you!
0
votes
1answer
21 views

Sending an array of addresses and amount to be paid to a contract

I need to pay 50+ addresses each with different amounts of ether. Right now im doing it by looping through an array on my front end and calling the contract function each time with the address and its ...
2
votes
2answers
265 views

What's the difference between Truffle Migrations and ZeppelinOS upgradeable contracts?

It was my understanding that Truffle migrations will move updated contracts to new addresses. As a developer, you can use this feature to update already deployed contracts with new code. ZeppelinOS ...
0
votes
1answer
21 views

Is Smart Contract of any ERC20 token is always available publicly

Is Smart Contract of any ERC20 token is always available publicly. If not complete, then what things are generally available,(for eg, except some sensitive information) And, if not any of them are ...