Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [greeter]

Questions related to the greeter contract

0
votes
1answer
134 views

Calling contract function via web3.eth.sendTransaction doesnt work

Im learning how Blockchains work and created a private Blockchain to test some things. I deployed the following contract: contract Greeter { address creator; string greeting; ...
0
votes
1answer
22 views

What exactly is a transaction when working with SmartContracts?

I am very new in Blockchain and Ethereum. I know the has transactions and blocks with hashes etc. I also followed this example https://www.ethereum.org/greeter to create my own private Network with 2 ...
1
vote
1answer
123 views

Can't fix the “block gas limit” error for the greeter example.

I'm trying to build my first smart contract. I'm trying to do the example here https://www.ethereum.org/greeter. So it seems that this example is so out of date it doesn't work at all. I've been ...
0
votes
1answer
111 views

Started my first Dapp, I have a trouble of Greeter tutorial

I started my first Dapp through this tutorial (“https://ethereum.org/greeter#the-solc-compiler”). But, there is a step (following image show ) I can’t understand, don't know what should I do: I ...
2
votes
2answers
92 views

Smart contact disappears over time?

So I did this simple greeter smart contact (tutorial here: https://www.ziggify.com/blog/blockchain-stack-1-installing-ethereum-geth-smart-contract/) Very simple. Just a greeter.greet() and it returns ...
2
votes
3answers
769 views

How to interact with a greeter contract?

I have a contract and I'm super confused how to interact with it. The submitting part works fine and I get a contract id. After that, I don't really understand if I'm supposed to send it a ...
6
votes
1answer
131 views

Contract Greeter - Windows - Browser solidity

I am currently trying my first contract on Ethereum but I never imagined that it would be so difficult... I followed the guide here : https://medium.com/ziggify/blockchain-stack-1-installing-...
1
vote
2answers
87 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 ...
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
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 ...
9
votes
2answers
2k views

Unable to define greeterContract in the Greeter tutorial. Breaking change in Solidity 0.4.9!

I was following the Greeter tutorial on Go Ethereum wiki and got stuck on the "var greeterContract = web3.eth.contract(greeterCompiled.greeter.info.abiDefinition)" phase returning TypeError: Cannot ...
2
votes
1answer
183 views

On Populus I am unable to make Basic Testing (Greeter Contract) work due to py.test

I was not able to make the following Basic Testing example work on populus. platform darwin -- Python 2.7.10, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 rootdir: /Users/avatar/populus, inifile: plugins: ...
6
votes
1answer
561 views

After loading the solidity script, i get null [object Object]. What should i do?

I wrote a contract greeter and mortal, they are as follows: contract mortal { address owner; function mortal() { owner = msg.sender; } function kill() { if (msg.sender == owner) ...
1
vote
1answer
429 views

Instantiate a deployed Smart Contract

After deploying a Smart Contract and knowing that: address = 0x20e4ac9385ea45919b9709c2b38d3190efa42ee4 ABI = [{ constant: false, inputs: [], name: "kill", outputs: [],...
1
vote
0answers
532 views

greeter.address Undefined while deploying the contracts

From Past 3 Days I am trying to deploy my 1st greeter contract But always I am getting the Undefined greeter.address. Below Steps I am following 1) geth Version C:\Block_Chain\Eth_1>geth version ...
1
vote
2answers
771 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
1answer
374 views

Why can't I kill my contract on my private blockchain?

Deployed to my private net, can call the contract, but can't kill: > greeter.greet() "Hello World again." > greeterSource "contract mortal { address owner; function mortal() { owner = msg....
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....
18
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" ...
6
votes
1answer
179 views

Why do some functions from my contract end up in the ABI while others don't?

Using the greeter example, The original contracts is written with 4 methods: mortal(), kill(), greeter(), and greet(). Why then when I look at the mined contract does it show me an ABI of: { ...
19
votes
2answers
5k views

Do I need a compiled contract just to get the ABI definition?

Why do I need a compiled version of the contract just to get the ABI definition? Seems like the contract address should be enough. Im very confused because I am simply trying to run a contract ...
7
votes
1answer
87 views

Will contracts on Frontier be wiped before the move to Homestead?

The Frontier Guide contains instructions on how to create a Greeter contract. Those instructions contain details about how to kill a contract, and why we'd want to do that. Part of those instructions ...
15
votes
2answers
4k views

What is the purpose of underscores in front of parameters?

I see contracts that use underscores in front of parameter names, like so: function Greeter(string _greeting) public { greeting = _greeting; } What's the purpose of these underscores? Do they ...
3
votes
1answer
2k views

Greeter variables are all undefined and contract doesn't run

I'm attempting to run the greeter contract on the live network. I'm following the commands as per the official tutorial, which worked on a test network when I tried it a while ago (on a different ...
7
votes
2answers
732 views

Can I compile a smart contract without removing the line breaks?

According to an official document, compiling a smart contract needs to remove all the line-breaks in the contract's source-code: If you have the SolC Solidity Compiler installed, you need now ...
10
votes
4answers
878 views

Unable to make greeter contract

For the past 7 days I've been trying to make the greeter contract, I've been through 4 different physical computers in 2 different locations and have tried multiple different ways on 3 different ...
3
votes
1answer
236 views

What is an 'uDApp'?

The online solidity compiler offers an output of smart contracts labelled uDApp, for example the greeter uDApp looks like that: [{"name":"greeter","interface":"[{\"constant\":false,\"inputs\":[],\"...
22
votes
1answer
8k views

How to unit test smart contracts

How are Ethereum contracts tested? I've seen Truffle which referrers to itself as an Ethereum development framework. Are there any other frameworks and what is their level of maturity? Is there a de ...