Linked Questions

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

Unable to deploy hello world ethereum contract [duplicate]

I am using this tutorial to create a hello world contract. I am on solidity 0.4.9, and I am trying to deploy the contract after compiling it. However, the compiled version is different. Here is the ...
1
vote
0answers
29 views

Solidity compilation issue on Linux Mint [duplicate]

I have a smart contract which I am invoking through webjs. Everything works well untill I am on Windows. Recently i had to move to Linux Mint. Now when i compile the contract. I get stdin in 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 ...
26
votes
6answers
15k views

How to compile Solidity contracts with Geth v1.6?

I tried to compile the following contract within geth: pragma solidity ^0.4.8; contract Test { uint256 public value; function Test() { value = 123; } } using the following ...
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" ...
3
votes
3answers
2k views

Ethereum: invoking contract function with bytes32 array

i have the following contract function function voteForAnswer(bytes32 questionKey, bytes32[] answerKeys) returns (bool success) { // is the sender allowed to do this? if (voters[msg....
4
votes
1answer
4k views

Deploying a Smart Contract displays warning: [Bad instruction]

I deploy a smart contract and it shows this error after I see it is created on testnet: Warning! Error encountered during contract execution [Bad instruction] When I go to contract code tab, it is ...
1
vote
1answer
755 views

Can't use object of web3.eth.compile.solidity(source)

I have the following code (source is the solidity contract to be compiled). var compiled = web3.eth.compile.solidity(source); var code = compiled.code; var abi = compiled.info.abiDefinition; However ...
2
votes
1answer
281 views

Can't use object “compiled” in var compiled = web3.eth.compile.solidity(source);

I've been struggling for the past couple of days with this. I Can't use object "compiles" in var compiled = web3.eth.compile.solidity(source); Here is my code in a JS file : var Web3 = require('web3'...