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
0answers
338 views

debug.traceTransaction(<transactionID>) returns a empty structLogs: []. What might be the reason?

On the comments here: https://ethereum.stackexchange.com/a/6011/4575 For a transaction to a contract, the contract vm instructions will execute and the steps are shown in the status.structLogs, ...
3
votes
2answers
566 views

How to use a contract deployed by my friend on my private blockchain?

My friend and I are using geth and have the same private blockchain. He has deployed a contract and is able to invoke its functions after mining it. Is it possible for me to call his contract ...
5
votes
1answer
3k views

How to interact with contracts in C++ application?

Vast majority of resource about contracts deal with using them in web applications with JavaScript web3. But how you interact with contracts (create, call them, make transactions) in a C++ ...
1
vote
2answers
256 views

Geth does not really attach

A question about geth attach. I am opening a geth console and then in another terminal I make geth attach. Everything looks OK when I execute web3 commands etc. (like eth.accounts) in both terminals. ...
3
votes
1answer
465 views

No data is deployed in the contract address

I have followed the previous solutions to this problem as mentioned in this question: Mist: "No data is deployed on the contract address!" I also checked if the Estimated consumption fee ...
0
votes
1answer
134 views

Can contracts be executed on PRIVATE-NET?

Using geth commands, I've created a private blockchain network and two accounts. Using Ethereum Wallet, I've also successfully mined ether using one of the accounts. However, doing any of the ...
3
votes
1answer
1k views

Truffle SWARM and IPFS Integration

I am now able to use truffle to deploy my contracts in my private blockchain. Now I want to understand how to integrate truffle with SWARM and IPFS for web app deployment. It will be helpful if you ...
1
vote
2answers
102 views

Greeter Contract - deploy command results in “undefined” [duplicate]

I am trying to deploy the Greeter contract on a private test chain following this guide (Deploying the Greeter contract via the geth CLI is not registering in my private blockchain) When I get to the ...
1
vote
0answers
247 views

Error: Invalid params when trying to deploy a contract which calls a library function

ecverify.sol // Written by Alex Beregszaszi (@axic), use it under the terms of the MIT license. pragma solidity ^0.4.2; library ECVerify { function safer_ecrecover(bytes32 hash, uint8 v, ...
1
vote
0answers
155 views

Smart Contract Missing tokens

Hello Ethereum Guru's, I am trying to replicate the first example outlined in 'Ethereum in practice part 1' (https://www.ethereum.org/token) using Ethereum Wallet on my Macbook. I had 1.0 of Ether ...
4
votes
1answer
578 views

Is there any way to re-deploy, to the same address, a contract that wasn't deployed due to an out-of-gas error?

Suppose that you deployed a contract, but your transaction got canceled due to an out-of-gas error. Is there any way to re-deploy the contract so that it takes the same address?
2
votes
2answers
1k views

intrinsic gas too low: how to increase gas in Mist?

I cannot deploy a contract using Mist because of the error intrinsic gas too low How can I increase the value of it?
1
vote
1answer
667 views

How to go about user login in an Ethereum web DApp?

The approach I'm currently using in my DApp is mapping Ethereum addresses to a solidity struct which contains all of that specific user's data. But since the address is publicly available can't ...
1
vote
1answer
140 views

how to build a better democracy in under a 100 lines of code [closed]

Hello friends after three days of research and a lot of help of community I solved my problem with the code of democracy smart contract following these tutorial: https://blog.ethereum.org/2015/12/04/...
1
vote
1answer
212 views

Required Understanding for Developing Ethereum Based Application [closed]

I am trying to get the understanding needed to develop an Ethereum based application. Lets say if I want to develop an inventory system. Here are the basic operations Purchase inventory, Maintain ...
0
votes
2answers
110 views

Creating a contract that pays out 1 Ether every 1000 blocks until I pay out 10 Ether. What happens if I have less than 9 ether in my account?

I want to create a contract asset that pays out 1 Ether every 1000 blocks, but only pay out up to 10 Ethers. I want to pay the asset holder. So that means the asset can be transferred to someone else ...
9
votes
1answer
2k views

What's the difference between solc's bin bytecode versus bin runtime?

Solc says that bin-runtime is the runtime part of the contracts. What exactly is the runtime bytecode part and how does it differ from bin bytecode output?
5
votes
1answer
690 views

Truffle & TestRPC: how to use another address for transaction / sendTransaction Function parameters

I have a Smart Contract, created / migrated with Truffle to TestRPC. TestRPC provides several default accounts. If I call functions within the Smart Contract from the Truffle console it does that ...
3
votes
1answer
177 views

Sealing a Smart Contract / Selfdestruct Remainings

Let's say there is a Smart Contract and different participants of the network interact with it. Under certain conditions (e.g. a certain method has been executed) there shall be no way to further ...
3
votes
0answers
110 views

Wallet on private chain not watching contracts?

I set up an ethereum private chain for testing smart contracts a while back. Recently, I've been unable to deploy and interact with contracts successfully. Here is what used to work: 1) I created a ...
3
votes
2answers
1k views

Truffle on Windows 10: how to unlock an account for migration to a private network

I try to migrate a smart contract to a private network via truffle on Windows 10. I specify a certain account in truffle.js and so far I get the following error: Error encountered, bailing. Network ...
8
votes
4answers
5k views

Find the creator of a contract

I want to prove that a contract was deployed by a specific address (a factory contract). I have noticed that block explorers such as https://etherscan.io/ list the contract creator. How do they get ...
0
votes
1answer
628 views

Deployment of Smart Contracts with Azure Ethereum Consortium does not work

I created an Azure Ethereum Consortium. The Ethereum Network deployed has 2 Transaction Nodes behind a load balancer. Via Putty I connect to one of the transaction nodes. Then I enter geth attach ...
1
vote
1answer
144 views

Ethcore not deploying contract via web3 Javascript API

I have written some Solidity code, with a setter method createId to write a name-value pair to contract storage, and a getter method getPermissions to get the value associated with a particular name. ...
2
votes
1answer
229 views

Need help with solidity library deployment

I have an issue with a simple library configuration and I need an advise to resolve this. Context: Local private block chain Version: > web3.version { api: "0.18.1", ethereum: "0x3f", ...
1
vote
1answer
1k views

Web3J: TypeError: MyContract is not a constructor

I am simply trying to call my contracts on a private blockchain from a nodeJS app after a call from the browser but I keep getting this error in my node: 2017-03-01T21:07:34.782560+00:00 app[web.1]: ...
5
votes
1answer
695 views

Do you need to publish the contract ABI and address for others to interact with the contract?

Suppose you write a contract that you want others to interact with. My understanding is that if you want others to interact with your contract, you need to provide the contract's ABI and address. Is ...
1
vote
1answer
271 views

solc: exit status 1 when compiling my contract on my private blockchain

I was trying to compile an example contract as told in the official website: here it was successful to setSolc and getCompilers ,but some errors occur when compiling the contract available on that ...
4
votes
1answer
877 views

Parity private chain: Contract deployment transaction not getting mined

I have some simple Solidity code to test contract deployment and invocation. It has methods to write a value to storage, and a method to read it. This worked perfectly well with a private chain with a ...
3
votes
2answers
384 views

Will a smart contract get deleted once Geth's console is closed?

Is there anyway to deploy a contract permanently on my private chain? I tried the greeter contract and closed the console. After running the console again and trying to invoke my greet function I ...
1
vote
1answer
487 views

Truffle V3.1.9, error running migrations

Hey I'm updating my truffle project from V2 to V3, and I am getting this error after migrating: sudo truffle migrate --network development Using network 'development'. Running migration: ...
1
vote
1answer
302 views

Gas Consuption: Deploying contracts from within a contract

I have a contract A that does nothing other than allowing to deploy contracts B and C in functions. Deployment of A exceeds gas limit. Seperate deployment of B and C work fine. So my naive assumption ...
3
votes
3answers
410 views

contract-deployment

pragma solidity ^0.4.0; contract SimpleStorage { uint storedData; function set(uint x) { storedData = x; } function get() constant returns (uint) { return storedData;...
1
vote
0answers
100 views

New Token Contract Disappears After Deployment

I'm attempting to deploy my version of the example token contract to the testnet. This is how far I get: The code compiles The contract doesn't complain pre-deloyment I see the contract deployment ...
1
vote
1answer
519 views

Error Creating tokens in Contract

Basically I followed the code and full code tutorials to create tokens on TESTNET. Contracts show as created but no tokens exist. First I increased all gas, then I tried following prior errors here: ...
1
vote
0answers
1k views

“Intrinsic gas too low” when deploying contract on the testnet

I get the error message "Intrinsic gas too low" when trying to deploy my contract on the testnet. Pic is my screenshot. I had set the fee slider to max (1.005 Ether). My account balance is 5.9 ether.
3
votes
2answers
522 views

Can the CALL opcode be used to create a contract?

The Yellow Paper Appendix H defines the CREATE and CALL opcodes. For CALL: the operand order is: gas, to, value, in offset, in size, out offset, out size. By setting the second operand (the "to"...
2
votes
1answer
659 views

How to test a contract on Truffle with multiple nodes?

I am a Truffle user. I would like to create one contract and test this. When testing, I'd like to setup three nodes, link them, access the contract and test it. Is this possible? Or am I doing strange ...
1
vote
1answer
124 views

How does Ether-Pudding/Truffle handle Metamask and Mist browser?

Is there anything different with how the accounts are managed?
3
votes
0answers
37 views

Ethereum geth console [duplicate]

In the geth console contract compiled fine, but it giving an error like this when ever I am going to deploy, is there any dependencies there? var greeterContract = web3.eth.contract(greeterCompiled....
1
vote
1answer
525 views

While deploying a contract transaction is not happening

I am a newbie in Both Solidity and Programming. I want to deploy a contract in MIST test network with some ethar. whan i pressing the publish button following error is showing. i have added the ...
1
vote
0answers
22 views

Ethereum Contract Deployment [duplicate]

var greeterContract = web3.eth.contract(greeterCompiled.greeter.info.abiDefinition); I am getting this type of error on geth console: TypeError:Cannot access member 'info' of undefined at :1:41 I ...
1
vote
0answers
74 views

Invalid JSON Response, Browser Solidity [duplicate]

While creating solidity contract on Browser solidity I am facing this error? callback contain no result Error: Invalid JSON RPC response: "" Can someone please help me resolve it? pragma solidity ^...
2
votes
0answers
188 views

“No data is deployed on the contract address” [duplicate]

Following token tutorial on ethereum.org, get error message No data is deployed on the contract address Forgive me, but I am new to mist. How do I find the "MyAdvancedToken" in Mist?
31
votes
1answer
22k views

How to update a deployed smart contract? [duplicate]

I've started developing smart contracts with Truffle and when I edit a contract I always redeploy it by adding another migration script. There are two things that I wonder about: Is this the way it ...
2
votes
1answer
183 views

Creating a new contract via sendRawTransaction() dropped

I have setup a private test network with geth 1.5.7 and am trying to create a new contract from my node.js app via sendRawTransaction(). I see the transaction created and txpool shows it as queued, ...
10
votes
2answers
1k views

Programmatically saving the contract address of a submitted contract

I understand how the below web3js code block works, adapted from here: https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethcontract But how does one save the contract address ...
2
votes
1answer
150 views

How to connect Eris to different accounts to start a chain?

I wanted to start a blockchain on my computer. For this, I am using Eris. I activated different accounts like root, validator, and participant account using eris chains start <ChainName> --init-...
2
votes
0answers
40 views

Why is the code on a contract address different from the compiled code? [duplicate]

There seem to be clear differences between the hex that the solidity compiler spits out and the hex that is displayed by eth.getCode() after you have published the contract. for example the original ...
2
votes
2answers
314 views

Different use of .yaml and .toml file

I started learning Eris chain and in the deploying section, they use .yaml file and for making the chain definition file they use .toml file. I searched the internet and what I found was they both are ...