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
6
votes
1answer
2k views

How can I deploy a contract with reference to a library contract without using a graphical user interface like Browser Solidity?

I am using Solidity Browser to deploy a contract due to from Library contract method failing #2831 issue. On this following answer https://ethereum.stackexchange.com/a/9181/4575 I have guided to use ...
3
votes
1answer
344 views

Could I give higher priority to transactions to mined right away?

For example on Linux we can give higher priority to processes for Linux Kernel to schedule. I am the owner of my Private Ethereum Network. As an owner, could I give higher priority to deploy or mine ...
4
votes
1answer
509 views

When i am deploying contract getting the “Error: The contract code couldn't be stored, please check your gas amout”

case 1. When my contract estimate gas is 72,75,790 by web3.eth.estimateGas method in my private blockchain.It works fine and contract deployed. case 2. My Contract estimate gas is 50,000,000.and ...
15
votes
1answer
4k views

Deploying contract with constructor arguments via Geth RPC

How can I deploy a compiled contract with constructor arguments using geth rpc? I have tested my call deployed the compiled contract bytecode just fine, I just don't understand how I can pass ...
2
votes
2answers
1k views

Contract transaction was sent to a 'null' address

I have attempted to deploy a contract through geth, my understanding was that a null value could be given when creating the transaction to deploy the contract. After mining the transaction I ...
15
votes
2answers
5k views

How to pass constructor parameters to a contract using Truffle?

I am using testrpc and truffle for deploying contracts.I want to pass constructor parameters while deploying. contract User { string public userName; function User(string ...
1
vote
1answer
318 views

When creating a contract getting the error “Error: The contract code couldn't be stored, please check your gas amount”

I wrote the following contract : contract EndowmentRetriever { address creator; uint contract_creation_value; function EndowmentRetriever() public payable { creator = msg.sender;...
2
votes
0answers
659 views

reference a deployed contract in truffle or node.js

I have a previously deployed contract on my PRIVATE-NET which I know its address. Now I am using truffle. How do I reference this contract in truffle console using its address? I looked through web3....
12
votes
1answer
586 views

Is it possible and sensible to deploy a contract to the same address on Mainnet and Ropsten?

Traditionally when people have deployed contracts for public use they have tended to publish separate contract addresses for Testnet and Mainnet. Often this then requires them to include code to check ...
3
votes
1answer
5k views

Error: Identifier not found or not unique. when deploying a smart contract which calls another contract

I am trying to call a contract from another contract. first contract is the source of items like a data table. second contract is like a logic layer for the items. I first deployed the contract1 and ...
1
vote
0answers
301 views

How to interact between geth and mist?

I know that mist is the gui of geth and geth represent the real node of client. here i have a question is that: when i use geth to construct a contract named greeter1, then i type eth.getCode(...
4
votes
2answers
2k views

Address is undefined after deploying a smart contract

I tried deploying a greeter contract as shown here , I thought the deployment is suceess but i am unable to get the address of the contract, it always shows undefined. When I tried to execute the ...
2
votes
1answer
164 views

Contract addresses and Unused Wallet addresses

As I understand it, you can instantiate a contract at any valid address that hasn't yet received ether, by sending a transaction, which contains the contract code as the data payload, to that address. ...
3
votes
1answer
442 views

Why contract's function that is deploy inside Solidity browser does not deployed inside geth?

I have my private Ethereum Network. Inside Solidity Browser: From Web3 Provider I have connected to my local ethereum node. I have pressed create button and successfully deployed my contract. Now I ...
2
votes
0answers
162 views

Unable to deploy smart contract through ether.camp on Ethereum Consortorium Blockchain

I have created a private ethereum block chain on azure using Ethereum consortorium block chain template. After the deployment is suceeded I got the following attributes of block chain ETHEREUM-RPC-...
5
votes
1answer
3k views

Interaction with a deployed smart contract from the geth command line

I have a contract which I'd like to be able to sum numbers submitted by any other address: contract UnitCounter { mapping (address => uint256) public UnitsFrom; uint256 public TotalUnits; ...
2
votes
1answer
112 views

Why does the blockchain store multiple copies of the same code?

Based on joeykrug's questions on Github: Is there any reason we need to store multiple copies of code if the same contracts use the same code? For example, if a contract is deployed and another ...
6
votes
1answer
1k views

How to generate a vanity address for a smart contract to be deployed on?

I am aware of the possibility to generate vanity addresses for normal accounts. However, how is possible to generate vanity addresses for external owned accounts (which host smart contracts)? I'm ...
4
votes
3answers
740 views

What is the right way to store and retrieve a contract address?

Suppose I create a new contract with: web3.eth.contract(abi).new({ data: code }, (err, contract) => { ... }) Inside the callback I am able to get the contract.address of the new contract. I can ...
15
votes
2answers
5k views

Truffle Migrations Account Locked Error with --network command

I have started a private blockchain using the command, geth --networkid 1337 --datadir ~/home/xyz/testnet --ipcpath /home/xyz/.ethereum/geth.ipc --rpc --rpcapi eth,web3 --rpcport 8545 --rpcaddr ...
4
votes
1answer
1k views

How to minimize gas consumption during contract creation

I have trouble deploying a contract to the main network and I believe this is due to high gas consumption. An earlier version of the contract worked on the main network. The current version works in ...
1
vote
1answer
134 views

logically centralized but physically decentralized contract

Reading https://uport.me/library/pdf/whitepaper.pdf it states : The uPort Registry Contract acts as a logically centralized but physically decentralized registry or lookup table mapping each uPort ...
4
votes
1answer
2k views

Exceeds gas block limit error when deploying near block gas limit contract

I'm trying to create a wallet contract using Geth 1.5 --light and Mist Wallet 0.8.7. Estimated gas cost for the contract creation is 1,962,239 while the gas limit is 1,998,227. So, everything should ...
4
votes
1answer
951 views

How to deploy dependent contracts with Ethereum Wallet

I have two contracts (i.e. contractA, contractB) located in different files (i.e, contractA.sol, contractB.sol) to deploy. The contractB is dependent on contractA. In contractB.sol, import "...
4
votes
1answer
1k views

How deploy a smart contract with meteor and metamask?

I will deploy a smart contract with meteor and matamask. My code in main.js : var inactivityTime = 1000; var continuityContract = web3.eth.contract(Continuity.abi); var continuity = ...
1
vote
1answer
446 views

Contract public variables stay undefined. Why?

I have a contract that looks like this: contract MainContract is usingOraclize { ... address minter; uint public returnRate; ... function MainContract(uint _returnRate) { ...
2
votes
1answer
142 views

Is it possible to link contracts to existing libraries from within geth console?

I've been making and deploying contracts and libraries, deploying libraries first and then using the binary output from e.g. $ solc --bin-runtime test.sol --libraries TestLib:...
3
votes
1answer
357 views

Please Help! ReplaySafeSplit contract not working after sending too much ETH

I am hoping someone has a answer to what I think is a relatively simple question. I started splitting my ETC from ETH using the ReplaySafeSplit contract. Some test and smaller transactions worked fine,...
4
votes
0answers
328 views

How to deploy a contract with inputs by using JSON-RPC? [duplicate]

I can deploy a simple contract without any input by using JSON-RPC, like: curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"sender's address","code":"compiled ...
1
vote
1answer
313 views

Eris : error compiling contracts

i try to deploy a contact using Eris Platform, i followed the tutorial in the documentation of Eris ( https://monax.io/docs/tutorials/getting-started/index.html?redirect_from_eris=true#fnref:1 ) but ...
6
votes
2answers
1k views

Generate contract address using nonce

Good day, I was looking at the way contracts addresses are created and it seems that the process is quite deterministic (depends on the nonce). Is there a way to get the address of a contract that ...
2
votes
1answer
91 views

What do I deploy?

This is related to Are Monolithic Smart Contracts Better than Those That Are Decoupled?, where I basically have the following setup: contract A { int private x; function save(int _x)...
25
votes
3answers
19k views

Calling function from deployed contract

I want to know how to instantiate an existing contract deployed on the blockchain using its address. e.g: contract A { function f1() {} } A is deployed on the blockchain, and in contract B I ...
3
votes
2answers
115 views

Can't get this contract to work

pragma solidity ^0.4.0; contract DataStore { struct DataModel { uint id; bytes32 string1; bytes32 string2; bytes32 string3; uint actorId; bytes32 ...
4
votes
1answer
219 views

Contract storage not changing on calling function

contract SimpleStorage { mapping(bytes32 => string) storedData; function set(bytes32 key, string value) { storedData[key] = value; } function get(bytes32 key) constant ...
13
votes
4answers
965 views

Deploying a contract from a multisig wallet

I created a multisig wallet using Mist, but don't know how to deploy a contract from the wallet address. Is it even possible? If so, how to do this?
7
votes
2answers
820 views

Is there any limitation for the number of the return values from Solidity functions?

Answer of this question (https://ethereum.stackexchange.com/a/3590/4575) says that: "I am not allowed to return dynamic arrays from Solidity functions yet." On the other hand, Solidity supports ...
2
votes
0answers
189 views

Can't deploy contract, does not recognize my 1 ETH

The console says: We can't estimate your gas usage properly, because you need at least 1 ether in your account Select fee is frozen. There is one ether listed at the top of the console.
3
votes
1answer
261 views

Deploy contract hangs in Mist

I'm not able to deploy any contract (the greeter contract does not work either) using Mist 0.8.6 in Windows. The deployment just hangs there and nothing really happens. Is there a way to figure out ...
2
votes
1answer
824 views

Access contract by address, without knowing implementation

I want to access and interact with a deployed contract. My restriction: Knowing the API (functions, fields), but not the implementation. I was looking at the Ethereum documentation "Accessing ...
3
votes
1answer
932 views

Deploy a contract from Solidity Browser or geth on an external node(connected into private ethereum blockchain)

I am trying to deploy a Contract from Solidity browser || geth. On my server machine, inside solidity browser || geth I am able to deploy a contract. But from my external node, which is connected into ...
5
votes
1answer
424 views

Unable to deploy contract on public chain

I was trying to deploy a contract to public ethereum network using Mist. I was able to send transaction successfully but my transaction is get no confirmations. It has been around 45 minutes and my ...
9
votes
4answers
5k views

Passing constructor arguments while deploying contract from byte code

I am trying to deploy a contract via MyEtherWallet from byte code generated by browser-solidity. I unlocked my wallet using private key,but I didn't find any way of passing parameters to contract's ...
5
votes
1answer
8k views

Solidity compiler is giving error ( Expected token Semicolon got 'RBrace' )

I am compiling a contract from browser-solidity,but I am getting Error: Expected token Semicolon got 'RBrace' . The part of contract that throws error is: contract owned { address public owner; ...
7
votes
1answer
1k views

How to call Library Function from a Contract? => [error] The contract code couldn't be stored, please check your gas amount. undefined

When I compiled following code at "https://ethereum.github.io/browser-solidity/" it gives me two Web3 deploy code for: var libraryContract = web3.eth.contract(...); //Web3 deploy code var ...
17
votes
2answers
8k views

Canceling / overwriting a pending transaction using geth JSON RPC

This is a private network A transaction was sent to create a contract using the eth_sendTransaction RPC call. The transaction is "removed" marked "will be removed" because it ran out of gas but ...
8
votes
2answers
441 views

When a smart contract is deployed, is its source code publicly viewable?

When a smart contract is deployed to the blockchain, is the source code then publicly viewable to all participants? For example, what you see here in Etherchain. I am aware that there are some ...
5
votes
1answer
3k views

Deploying Smart Contract into Ethereum testnet

I have followed this guide https://ethereum.stackexchange.com/a/2787/2426 (or equivalently https://www.ethereum.org/greeter ) when trying to deploy a simple Smart Contract into Ethereum testnet. I am ...
3
votes
1answer
434 views

Making a contract in the geth console

I have the following code in a script name contract.js ( foo, pwd and id are replaced by their value in my actual script) var web3=require('web3'); personal.unlockAccount('id', "pwd") var aContract = ...
6
votes
1answer
3k views

How many contract are currently deployed on the Ethereum blockchain?

I was recently asked what percentage of transactions represent smart contract deployments on Ethereum, and had no immediate answer. It is probably easier to ask how many contracts are currently ...