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

Truffle contract migration deploying same contract on multiple address

I deployed multiple contracts of which some are linked to one another using truffle migration on the testrpc . In my web3 call for a function of one of the contract, instead of returning the current ...
1
vote
3answers
662 views

Minimal investement is not working

uint256 public max_contribution = 50 ether; uint256 public min_contribution = 0.1 ether; function transfer(address to, uint tokens) public payable returns (bool success) { require(msg.value &...
0
votes
1answer
191 views

Best way to deploy a ERC20Token to the mainnet

I'm planning on deploy a ERC20 Token Contract to eh Main-net. I've tested it on both Rinkeby and Ropsten, deploying from different platforms. Parity,Ethereum Wallet, Remix with metamask. I wanted to ...
2
votes
0answers
53 views

Get Contracts Deployed Count on Quorum Blockchain?

I have lost count of the number of smart contracts deployed on my quorum blockchain. What are some negative impact/implications of forsaken smart contracts on a private blockchain such as Quorum? ...
0
votes
0answers
24 views

Minimal investement problem

uint256 public max_contribution = 50 ether; uint256 public min_contribution = 0.1 ether; function transfer(address to, uint tokens) public payable returns (bool success) { require(msg.value &...
0
votes
1answer
106 views

Cann`t deploy contract using pragma solidity 4.21 (after solidity 4.20)

I cant call me a pro at all. Rather newbie than pro, wishing to learn and develop. I`m sincerely asking you to help me. I have the token and crowdsale contract (testing) which I deploy and initialize ...
0
votes
2answers
228 views

Truffle deployment error with infura

I am stuck with an issue as the contract works fine with remix ide and local ganache provider but when I am trying to use truffle with infura apis to deploy the contract over rinkeby testnet, I keep ...
0
votes
1answer
176 views

How to get all the contracts deployed by a specific ethereum address?

It is anyhow possible to get all the contracts deployed by a specific ethereum address in lifetime? If yes, is it possible to get ABI details of the contract by their address?
0
votes
1answer
132 views

Ethereum account code hash

I've created a contract https://ropsten.etherscan.io/address/0xfaba4475358c1c23e37549f9bd54300261873d41#code And using its createChild() method I've created 3 children https://ropsten.etherscan....
1
vote
1answer
244 views

Correct way to deterministically compute contract address in Python

To begin with, I have already gone through the approach outlined in the following thread: How is the address of an Ethereum contract computed? I wanted to test if the approach actually works. On my ...
0
votes
2answers
112 views

Unable to deploy smart conrtact using node js (not truffle)

here is the code as explained in web3 doc(node:13887) web3.eth.estimateGas({data: '0x' + bytecode}).then(value=>{ console.log('gasEstimate = ' + value); let MyContract = new web3.eth.Contract(...
0
votes
1answer
318 views

Deploying DAPP on cloud using docker

I am novice in docker technology. I have developed a basic private ethereum blockchain DAPP locally using Truffle and I want to deploy the same on cloud. 1) I need tutorials for how to crate a ...
1
vote
2answers
54 views

Custom tool to deploy smart contract

We want to migrate away from truffle for deploying the smart contract. What kind of approaches would be good to do this? Can deployment be done without truffle or similar tools, and done manually "...
1
vote
0answers
26 views

Can Ethereum be successful in a world where EOS meets all of its promises? Why/Why Not? [closed]

As the title states, the EOS platform looks incredibly promising, but looking at the recent blog posts the maximum 6k transactions per second is much less than the promised 100k+ per second. I'm aware ...
1
vote
2answers
227 views

Will gas from a failed ERC 20 token creation be returned?

I recently attempted to create a new ERC 20 through MyEtherWallet and the creation failed due to Warning! Error encountered during contract execution [Out of gas]. Below is some information about ...
1
vote
2answers
2k views

Truffle migrate: store deployed contract address in variable

How can I store the address of a deployed contract into a variable of another contract, e.g. using a placeholder? contract One{ function One(){ } } contract Two{ address oneAdd = "Put ...
2
votes
2answers
222 views

Method for staking coins in Casper FFG

When Ethereum changes to a PoW/PoS hybrid (Casper FFG), how will the staking process work? I heard that there might be smart-contracts and you need to send your coins to the contract to stake the ...
1
vote
2answers
64 views

Smart Contract Deployment Stays in Pending State

Pretty straight-forward problem. I'm trying to deploy a smart contract token using Mist (not the browser). When I click deploy, it asks me to confirm, tells me the gas it'll use (maybe that's too low? ...
1
vote
1answer
94 views

How much is visible to someone who looks at a contract without having the ABI definition?

My question is if I deploy a contract online, say for example, a contract that represents a loan between Mary and Peter. How much would someone see who tried to decode the block? Is it correct to say ...
1
vote
0answers
153 views

(browserify) Error : Cannot find module 'web3/lib/solidity/coder.js'

When I use command browserify viz.js -o main.js to build this project, I receive following error message : C:\Users\KX5710\Downloads\GUI_solarchain\solarchain-dashboard-master>browserify viz.js -o ...
0
votes
1answer
162 views

Problem deploying a smart contract in web3 to the Ropsten testnet

I am having trouble deploying a smart contract to the Ropsten testnet. I have dug through a lot of tutorials and questions and I cannot seem to find an suitable answer. Thanks so much for you time! ...
0
votes
1answer
61 views

Massive Download [ETH] smart contracts

This question have just been published in StackOverflow as well, but you might be able to guide me on a better direction: I'm looking for the most valid path to download and keep downloading every ...
4
votes
2answers
2k views

How big could a contract be?

I am trying to figure out how big could a contract be? Is it possible to have 10k functions? One million? More? Is there any restriction on the function's body size? Does a bigger contract need ...
0
votes
1answer
199 views

Permanent deployment of contracts in Geth

My current method of deploying smart contracts in geth is by generating the bin and abi files of the corresponding sol and then loading the bin and abi files of the contract into geth using the ...
3
votes
1answer
1k views

Error: “The contract code couldn't be stored, please check your gas limit” [duplicate]

It's seem that is a very common topic but I couldn't find the solution in other questions, sorry for asking it again. I'm following a beginner example, trying to deploy a contract in Rinkeby Network ...
0
votes
1answer
328 views

solidity: using array in a struct

I am designing / developing a smart contract in which we have 2 types of object : moving object and non moving object. Both types state is changed time to time. ex. in case of moving object its ...
0
votes
1answer
240 views

deploy a contract through a web UI

I was wondering what is the best approach to deploy a contract through a web UI. I am using meteor as framework and geth version 1.7 so i was thinking of using fs in my javascript to create a textfile ...
5
votes
4answers
885 views

Unhandled promise rejection(gas limit) when deploying Contract to rinkeby using truffle-hdwallet-provider

I am trying to Deploy a beginners contract onto the rinkeby test network through Infura node. It is throwing the following error. (node:35183) UnhandledPromiseRejectionWarning: Unhandled promise ...
4
votes
1answer
2k views

What is use of HDWalletProvider in Truffle config?

The sample code here for deploying to Ropsten used HDWalletProvider and a mnemonic in the config, but I am not sure I understand its purpose. Is this just telling it the account that will become the ...
0
votes
3answers
742 views

web3.eth.personal : “Method not found”

When I invoke a method of web3.eth.personal I receive an error as follows: > web3.eth.personal.getAccounts().then(console.log); Promise { <pending>, domain: Domain { domain: ...
2
votes
0answers
132 views

How much gas is consumed by a smart contract deployment?

I have a compiled EVM file which is 18,012 bytes large and when placed on the blockchain it creates a contract which is 17,859 bytes large. This size has been checked by running eth.getCode(...
0
votes
2answers
220 views

Why Deployment of ERC20 token contract to Ropsten is taking lot of time?

I'm trying to deploy my ERC20 token contract on Ropsten network, It took 2hr 30 mins and still pending, what is happening, any problem with deployments? Is it linked to the recent batchOverflow Bug ...
2
votes
1answer
1k views

Is it possible to transfer the balance of a contract from another contract?

contract A{ address public seller; function A(){ seller = 0xdd870fa1b7c4700f2bd7f44238821c26f7392148; } function transfer_from_B(address b){ seller.transfer(b.balance);//ERROR } } ...
0
votes
1answer
307 views

Deploying a smart contract with several solidity files

I have a contract contains 4 .sol files and when I generate its bytecode and api as follows: > solc --bin GreenToken.sol > solc --abi GreenToken.sol I receive: ======= BasicToken.sol:...
1
vote
2answers
467 views

Calling a function from a contract passed in as an argument

Im Trying to create a DAPP with two contracts generating assets. One is acting as the "factory" for the other contracts. From the latter I try to call a function in the factory without knowing its ...
0
votes
1answer
248 views

Deploy Contract for every user [duplicate]

I have an application in which I have to put each user information on a different block to get the block unique address, do I have to deploy contract every time I will add new user information?
0
votes
0answers
323 views

How to use MetaMask Web3 with Truffle promises

My project uses the react truffle box, and I use the getWeb3 method that comes with it. After calling that method, I store the web3 object on Redux's state tree via the action creator storeWeb3. ...
0
votes
0answers
37 views

transaction confirmation problem

I sent several times some transactions via a consortium established on ethereum (https://energyweb.org/), but none of are mined or confirmed (it is cheched from here : https://tobalaba.etherscan.com/)....
0
votes
1answer
2k views

Cannot read property 'deployed' of undefined issue

I am trying to launch an Election-Dapp. I have these dependencies installed: - Nodejs v9.11.1 - npm v5.8.0 - Truffle v4.1.3 - web3js v0.2 - ganache-cli Below is my solidity contract pragma ...
1
vote
1answer
336 views

Ethereum Solidity how to deploy a contract from another contract with constructor function

The old way: constructor function is the same as the contract name: contract CtrtFactory { function makeCtrt() { address ctrtAddress = new Ctrt(...); } } contract Ctrt() { function Ctrt(..) ...
0
votes
1answer
142 views

Offline signed contract throws 'exceeds block gas limit'. Why can't I deploy?

I'm trying to deploy a smart contract onto the Ethereum blockchain by signing the transaction on an offline computer and then transferring the byte code to an online system for deployment. Because of ...
1
vote
1answer
76 views

Why does a contract have an account?

Why do contracts have an account? I mean, their code is entered to the blockchain and their balance can be computed by previous transactions, so why is there an account of it?
1
vote
2answers
27 views

What would happen if I would deploy contract as 1st and 129th transaction?

According to how contract address is computed my 1st and 129th transaction as a contract deployment should have the same address. What would happen if I was to deploy them in that order? I already ...
0
votes
1answer
156 views

Failed to verify contract source code due to timeout/memory limit

Failed to verify contract deployed through remix on Ropsten network both using optimization and without it. Error is: Exception #1 Occured: ERROR|The Contract solidity compilation has exceeded the ...
0
votes
0answers
101 views

When using MEW to deploy a contrct the gas limit goes to -1 when I paste in the bytecode

The gas limit that should set automatically to an estimate just goes to -1 and when I change it manually to the max allowed integer the transaction still fails to deploy the contract (and the gas is ...
0
votes
2answers
714 views

how to deploy escrow smartcontract and use it with exciting erc20 tokens

i want to build escrow smart contract with one particular ERC20 standard token. i want to hold token in escrow as a guarantee for transaction. and on some condition those tokens should go back to ...
0
votes
2answers
101 views

is there a good explaination for gas?

I would like to deploy a contract using truffle. My account has 0.02 ether (20000000000000000 wei). I set gas: 4612390 in the truffle.js and don't set anything for gasPrice. eth.gasPrice returns ...
2
votes
0answers
178 views

“queue limit” error

I try to deploy a smart contract and every time i receive "queue limit" error. Here is what i do: Web3 = require("web3") web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); ...
0
votes
2answers
80 views

Who validates Smart Contract during deployment

When Deploying smart contract on Etherum Blockchain , who validates if that smart contract is valid and is not some fake contract that just takes away Etherum.
2
votes
2answers
191 views

Why do people hash the address?

I recently saw a smart contract where the user used keccak256(address), is there any reason to do this, instead of just storing the address in the mapping?