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
135 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 ...
1
vote
1answer
320 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;...
3
votes
0answers
660 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....
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 ...
2
votes
0answers
302 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(...
2
votes
1answer
172 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
443 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
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 ...
4
votes
3answers
750 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 ...
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 "...
1
vote
1answer
452 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) { ...
5
votes
0answers
340 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 ...
2
votes
1answer
147 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:...
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)...
3
votes
1answer
841 views

Accessing Contract from geth

I am working on a private test net. I have deployed a contract using Ethereum wallet. And in the contract I have a function to transfer coins from one account to other. function transfer(address _to, ...
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 ...
2
votes
1answer
917 views

Ethereum Wallet: error of no key for given address or file

In etherum wallet I am getting an error of no key for given address or file during deployment of the contract. What will be the reason for the same? contract User{ string public userName; ...
3
votes
1answer
263 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
825 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 ...
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 ...
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; ...
2
votes
1answer
486 views

How can I confirm validity of deployed contract?

I have deployed contract using mist browser 0.6.1 How can I do code validity check on ethereum mist?
3
votes
1answer
436 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 ...
3
votes
1answer
346 views

What will be the format of data to execute a function from web

I have deployed a cryptocurrent on Private testNet from here. I have deployed two contracts, lets call them contract1 and contract2. Contract1 has less features than contract2 (like transferFrom() ...
4
votes
3answers
1k views

Deploying contracts on geth returns Error: connect ECONNREFUSED 127.0.0.1:8545

I'm using truffle (which uses pudding) to deploy contracts to my testrpc. No I'm running a geth instance locally with: geth --mine -rpccorsdomain "*" --ipcapi "admin,eth,miner" --rpcapi "eth,...
3
votes
1answer
782 views

contract.address is undefined when deploying a contract with cpp-ethereum and ethconsole

I want to create new contract using cpp-ethereum (built from source) and ethconsole. I followed this guide: https://www.ethereum.org/greeter. I modified the contract to contain only one class ...
1
vote
0answers
566 views

greeter.address Undefined while deploying the contracts

From Past 3 Days I am trying to deploy my 1st greeter contract But always I am getting the Undefined greeter.address. Below Steps I am following 1) geth Version C:\Block_Chain\Eth_1>geth version ...
3
votes
1answer
123 views

Contracts receiving multiple identical transactions

Assume a smart contract is used to add potatoes. Every time a person gets a new potato they send a transaction to the smart contract which adds 1 to the total potato count. Let's assume, within a ...
1
vote
1answer
374 views

Setting up a truffle project

I'm reading truffles's docs and am trying to build a custom project with a contract and a few test cases (written in a js file). I need to do this because testrpc is (considerably) faster than geth. ...
1
vote
1answer
299 views

Faster deployment of contracts using geth

I'm working with a fairly large contract (~12 KB) on a private test net and deployment times are quite large (not mining the contract, but copying the interface and creating the deployment transaction ...
4
votes
1answer
1k views

Create a new contract by JSON-RPC of cpp-ethereum

I want to create a new contract by JSON-RPC and cpp-ethereum. I find out eth_sendTransaction can help me to do this. And let do it, I need to set "to" parameter like that: to: DATA, 20 Bytes - (...
2
votes
1answer
170 views

Compiling and deploying Registrar.sol in private network

I created a contract using go-ethereum console, I want to deploy registrar in private network. I found out a way to compile and deploy in https://github.com/ethereum/dapp-bin/tree/master/registrar ...
4
votes
1answer
591 views

Understanding TokenCreator/OwnedToken example from Solidity documentation

Here's the page containing the example https://solidity.readthedocs.io Here are two contracts that are supposed to work together(my questions are below): Here's how I think it works. Please correct ...
3
votes
1answer
348 views

Using new operator and TypeError: Cannot read property 'event' of undefined

Here's the code: I compile these two contracts together and deploy Bar contract. After deploying it I have a contract account address where it has been deployed on the blockchain: ...
4
votes
2answers
1k views

truffle deploy to geth failing, generating “receipt not found” repeatedly from geth

I've just installed truffle on an ubuntu virtualbox, and it is failing to deploy to a geth dev setup. Geth gives me a never-ending receipt not found for transaction ...
1
vote
2answers
342 views

Create a contract at a defined address?

Is it possible to define a smart contract at a predictable address? 0xf0 CREATE in the Yellow Paper suggests that the address is deterministically determined by x = A(Ia, σ[Ia]n) page 29 of http://...
1
vote
2answers
802 views

How i can access the contract functions (After run compiling the contract source code)

I run the following simple contract var greeterSource = 'contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg.sender == owner) selfdestruct(owner); } }...
1
vote
1answer
464 views

Eris Solidity Tutorial: How to set the bank?

In the Eris Solidity tutorial, a system of a Bank and a FundManager contract are developed. In the fund manager constructor contract Bank { [Bank contract details] function setOwner(address ...
1
vote
2answers
744 views

Multisignature contract process got the error TypeError: Cannot access member 'call' of undefined

First step i start the geth like this geth --testnet --natspec --rpc --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi "personal,eth,web3,net" Then I run the following code: //Multisignature source code ...
3
votes
1answer
664 views

What's the point of sending a value in a contract deployment transaction?

When deploying contracts, to what end can/is the ether value associated to the deployment transaction be used? In the documentation, it's stated that: The value field is used the same as in ether ...
2
votes
0answers
593 views

Deploying a smart contract from hosted wallet or light client

At the moment I use the official Ethereum wallet / mist for deploying a contract to the Ethereum network. Is there any other options for doing this either via different software clients or websites? ...
3
votes
3answers
2k views

Creating a contract with constructor in ethereumj

contract Calculator{ int result; function Calculator(int initialResult){ result=initialResult; } } If above is the contract source code I have created then how to call Calculator ...
2
votes
0answers
69 views

How do I edit a contract already in the blockchain? [duplicate]

I have a contract currently in the chain and I want to add a feature. Do I need to make a brand new contract, or is there a better way? And if I have registered the contract with a name can I ...
2
votes
1answer
600 views

Subcurrency Example: Why always be the “minter” using browser compiler?

A note in the docs referring to the contract example SubCurrency states: This is not a nice example for browser-solidity. If you use browser-solidity to try this example, you cannot change the ...
3
votes
1answer
479 views

Should callbacks be called twice from both MyContract.new and MyContract.myFunction on web3 API?

When I instantiate a contract with myContract.new() like this: MyContract.new({ from: addr, data: code, gas: gas, gasPrice: price }, function (error, contract) { if (!error) { ...
1
vote
1answer
385 views

Deploying contract with web3 returning all zeros transaction hash

I am running the following code in web3 the backend is a node running parity --testnet -j -w --jsonrpc-interface all. My web3 code // data.contracts.TestContract is the results of // solc test-...
4
votes
3answers
151 views

Deployed contract not callable anymore

I deployed a contract yesterday which was mined and which was responding to calls. Today the contract "does not live" anymore. Do I need to redeploy? Is there a way to find addresses of contracts I ...