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
2
votes
1answer
163 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 ...
3
votes
1answer
266 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
1answer
545 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 ...
1
vote
2answers
313 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://...
13
votes
4answers
2k views

Error: The contract code couldn't be stored, please check your gas amount

I am using the below code to create the contact it give the error: Error: The contract code couldn't be stored, please check your gas amount. Code: primaryAccount = web3.eth.accounts[0]; //...
3
votes
1answer
653 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, ...
6
votes
1answer
2k views

Can we modify a deployed contract in ethereum-wallet?

I have deployed a contract in ethereum-wallet for creating my own crypto-currency. I want to ask that in future if i want to add functionalities to my currency then is it possible ?
1
vote
1answer
420 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
665 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
637 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 ...
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,...
1
vote
2answers
781 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); } }...
2
votes
0answers
584 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? ...
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
0answers
67 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 ...
3
votes
1answer
453 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
381 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
1answer
134 views

How to work with inherited contracts in EthereumJ?

In EthereumJ, I have two contracts i deployed them individually,first one was deployed but for the second i got error as in that i was calling function of first one and example i have second is first ,...
4
votes
3answers
139 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 ...
3
votes
2answers
3k views

If i am writing two contracts A,B and extending one with other then can i use methods from contract A in contract B when i am deploying?

If i am having two contracts extending one with other then can i use methods available in one contract in another when i have deployed.We have to take them in one file or have to deploy differently ...
5
votes
3answers
2k views

Why is my Greeter contract not mined on --testnet?

I'm working on the contracts tutorial. Here's the code (including contract): var greeterSource = 'contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg....
5
votes
3answers
886 views

Do I need to be synced to the blockchain to create a contract?

I haven't been able to run the Greeter contract on the live network and am referring to these excellent Q&As for guidance. I have a feeling that it's because my client hasn't finished syncing with ...
5
votes
2answers
674 views

Calling specific functions within a contract using pyethereum

I've been going through this tutorial and got to the part where the contract is being sent to the block chain: pyethtool applytx $genesis $tx which should give the output: {“result”: “...
6
votes
1answer
2k views

geth: view all current contracts on a private testnet?

How can I query a list of all current contracts with geth? Is there a way to see the contracts' class names?
2
votes
3answers
197 views

How are end-users meant to build trust towards smart contracts (and their originators)?

One of the benefits commonly associated with Ethereum is that it allows end-users to interact directly with smart contracts and thereby removing the need for trusted-third-parties. In cases where: ...
5
votes
3answers
1k views

Does deploying a contract mean it will overwrite the last instance?

I must have missed something about deploying contracts, but to be sure: I'm using Truffle, Does deploying a contract mean it will overwrite the last instance? Since I see that it gets a new address ...
9
votes
1answer
2k views

How to edit a contract that has already been deployed? [duplicate]

I have been writing my first few contracts. So, as I understand it, once you write, compile, and deploy your contract, the only way to then interact with that contract is via something like web3.js ...
3
votes
3answers
1k 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 ...
1
vote
1answer
431 views

why contracts can't be deployed on my private chain using geth CLI?

I tried to use the geth CLI(the eth.contract command line) to deploy a new contract to my private chain, but why is there no response even no transactions received by the chain according to the log ...
2
votes
0answers
127 views

Possible to create new contract via a proposal in the ethereum.org/dao framework?

Is it possible to deploy contracts from within contracts, using something like p.recipient.call.value(p.amount * 1 ether)(bytecode); This article says so, https://blog.ethereum.org/2015/12/04/...
4
votes
1answer
4k views

How to specify the gas when deploying a new contract in Mist?

When I send transactions to my contract, the wallet tells me that the gas runs out, so how can I specify the gas amount when deploy a new contract?
8
votes
1answer
2k views

Why does this Oraclize query only works once?

Why this code works one time? First time I get proper random number, but after that I get wallet response "Data can't be executed, so it will use all provided gas" I'm in Testnet. contract ...
11
votes
1answer
1k views

Out of gas during contract creation

A few days ago, several attempts at creating a contract failed with out of gas errors (confirmed by etherscan/ethercamp and getBalance API), however it is not clear to me what failed exactly, and how ...
4
votes
1answer
964 views

Truffle Dapp Deployed Contract Access

Which function we need to use in truffle for the communication of second Dapp to the contract deployed on blockchain by first Dapp, because contract deployed by truffle is not accessible by geth node. ...
5
votes
1answer
112 views

What happens if I call .at() with an invalid address?

Imagine that I have obtained the contract ABI, but I'm not sure if I got the right address it was deployed. If I do: var contract = web3.eth.contrat(abi); var deployed = contract.at('<invalid ...
11
votes
1answer
431 views

Is there a way to detect which compiler version produced a contract binary?

Given the compiled bytecode on the blockchain, is there a way to detect which compiler version is being used in order to verify source matches bytecode without having to bruteforce all available ...
6
votes
2answers
526 views

How many Ethereum contracts have been published?

Is there a place to see how many Ethereum contracts have been published? If someone wanted to calculate that, it would just be total number of accounts minus accounts with code, right? Any ...
15
votes
6answers
11k views

Encoding/Decoding contract ABI data

How to encode and decode ABI data? Can someone show me an example with web3js library?
4
votes
1answer
516 views

How do you provide a GasPrice and GasLimit to overcome the “low tx nonce or out of funds” log message

I am getting the following logged by my private chain geth node when running a test in truffle: removed tx ( TX(ff8ec4f713e64fb25df07d153607e29629c9276b57e0b7e331f17b5a3c31fdd1) Contract: ...
4
votes
1answer
1k views

Can't deploy a contract that calls another contract

When I run the below code when connected to geth --dev --mine, the output is: A transmitted, waiting for mining... aAddress: 0xbaxxxxx4ae42d B transmitted, waiting for mining... bAddress: ...
3
votes
0answers
73 views

how to deploy the contract? [duplicate]

I want to know after I develop a smart contract in the explorer based solidity compiler and get the binary code, how can I deploy it to the network and send transactions to it?
2
votes
0answers
78 views

Is there a decompiler for the binary data in the blockchain [duplicate]

I want to know if there is a decompiler for the binary data in the blockchain, I want to know about the details of my contract after it was uploaded to the blockchain?
3
votes
2answers
218 views

Where to find the private key for my contract in blockapps?

I am trying to use blockapps-js to invoke functions on my smart contract deployed in blockapps. Since I need the private key for it, I am looking at the app/users/admin/.json file. Problem is I cannot ...
3
votes
2answers
688 views

Contract creating another contract in a single source file

When deployed as a single source file is the address stored in variable creator = TokenCreator(msg.sender) within function OwnedToken referring to the address of the contract TokenCreator or the ...
5
votes
1answer
4k views

How to deploy contract into local running node using solidity browser?

I am running a local ethereum node and I did unlock an account. Now I want to use the solidity browser to deploy that contract, but when I switch to the web3 provider deploy option and I press the ...
2
votes
1answer
262 views

populus : how do i deploy a contract with args in the constructor?

Suppose I have a contract with some parameters that can be passed in the constructor, how am I suppose to pass them within the framework ? I tried to search the docs at the deploy part but can't find ...
19
votes
2answers
6k views

Deploying the Greeter contract via the geth CLI is not registering in my private blockchain

I am running a local private Ethereum blockchain using: geth --networkid 60098 --genesis CustomGenesis.json --nodiscover --maxpeers 0 --rpc --rpccorsdomain "http://localhost:3000" --datadir "./data" ...
2
votes
1answer
446 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?
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 ...
4
votes
3answers
1k views

How to inspect state of smart-contract whose code I do not have?

Often it is argued that one big advantage of blockchains is that anyone can come along and inspect the state. However I have not found any practical guide for doing this. Block explorers allow us to ...