Linked Questions

1 vote
0 answers
37 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 ...
noped's user avatar
  • 21
3 votes
0 answers
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....
NarraVasu's user avatar
  • 133
1 vote
0 answers
34 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 ...
Hitesh Joshi's user avatar
1 vote
0 answers
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 ...
NarraVasu's user avatar
  • 133
27 votes
6 answers
17k 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 ...
BokkyPooBah's user avatar
  • 40.3k
20 votes
2 answers
7k 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" ...
Bill LaPrise's user avatar
3 votes
3 answers
5k 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....
tkdp's user avatar
  • 185
4 votes
1 answer
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 ...
Aram's user avatar
  • 375
1 vote
1 answer
867 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 ...
PetrosM's user avatar
  • 526
2 votes
1 answer
303 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'...
PetrosM's user avatar
  • 526