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
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
576 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
237 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
860 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
352 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
449 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
291 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
399 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
99 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
491 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
482 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
590 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
519 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
72 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?
29
votes
1answer
17k 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
179 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
148 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
39 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
288 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 ...
4
votes
2answers
510 views

Contract created by another contract and exceptions

I have two questions regarding contract creation and exceptions: If contract A creates contract B and then throws in the same function, is B also deleted? If contract A creates contract B, and B ...
7
votes
1answer
165 views

Distinct, inconsistent compilation of inherited but identical contract in solidity

Consider the following solidity source file A.sol: pragma solidity ^0.4.8; contract A {} and B.sol: pragma solidity ^0.4.8; contract A {} contract B is A {} Using solc version 0.4.8, the code ...
2
votes
0answers
188 views

Error deploying from ethereum studio to ropsten

I tried to deploy a contract to ROPSTEN from Ethereum Studio using "send contract to the Net" with the following parameter: JSON RPC URL: https://ropsten-lb.ether.camp It is actually an small ...
2
votes
1answer
902 views

Issue in deploying contracts through Ethereum Wallet

I am having issues in deploying contracts in ethereum testnet after updating geth version to the 1.5.6. I have been trying to deploy the basic contract as follows pragma solidity ^0.4.2; contract ...
4
votes
1answer
256 views

Error deploying Ethereum contract: The transaction from “Account Name” to undefined couldn't be successfully executed

I'm going through the tutorial in Ethereum website and trying to Deploy a contract to TESTNET, copied from the Ethereum page. When I deploy it, it errors out: "The transaction from Test Contract ...
3
votes
1answer
217 views

contract address without transaction

In the documentation for parity's PoA chain it is mentioned that you should add the address of the contract which determines the validators to the genesis file. The function getValidators will be ...
2
votes
1answer
494 views

what happens when we shut down the nodes of a private ethereum network?

I created a private network using Microsoft-ethereum consortium template with 2 mining nodes and 1 transaction nodes on azure which are linux machines. After a period of time I shut downed all the 3 ...
1
vote
1answer
174 views

Ethereum Contract Issue

I have written a contract Transfer and the functions defined in the contract Transfer is used in another contract SecondTransfer.I have defined a constructor in the contract Transfer and initialized ...
4
votes
1answer
5k views

Constructing contract with an address array

Please correct me if I am wrong but I understand you cannot initialise a contract with a string array as it is a dynamic type but can I initalise a contract with a fixed type? specifically an array of ...
5
votes
1answer
525 views

Is there any way to disable contract creation on a private network?

I want to use a private Ethereum chain for a specific purpose. I want users to be able to execute contracts that I have created or that I have initialized the blockchain with, but I do not want users ...
3
votes
1answer
447 views

Gas not enough and not able to run functions

I am a new comer to the Ethereum and I am writing a piece of smart contract for my project. I used Win 10 and Mist 0.8.8 with the testnet that started with "R". The contract code has the functions of ...
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
301 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
497 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 ...
14
votes
2answers
4k 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
317 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
498 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
4k 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
162 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
440 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 ...