Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 05 2016 10:31
    @alexvandesande banned @adamskee
  • Mar 16 2016 01:12
    @alexvandesande banned @scbosse
DariusTheGreater
@DariusTheGreater
so.. like.. i'm reading through the etherium tutorials, i'm not seeing anything impressive
i'm seeing what looks like financials programming..
and that uses a language which is kind of... ugly
where are the dao's ?
that actually do something other than tally votes ?
Al Khalil Alwaini
@notdon
Here is one @DariusTheGreater “Explaining the DAO exploit for beginners in Solidity” @MyPaoG https://medium.com/@MyPaoG/explaining-the-dao-exploit-for-beginners-in-solidity-80ee84f0d470
parsparab
@parsparab
how many folders required for an ico token. I got confused that that golem and some other coins have way too much folders, why do they need much folder. If the coin is based on ethereum blockchain??
Orionsz
@Orionsz
@haniftradingat What you need?
@parsparab Why you counting folders anyway?
SRLB
@SRLB
Hey guys, Im new to cryptocurrencies and my mind has literally been blown from what I've been reading.
kTweaks
@EricLegend
:boom:
SRLB
@SRLB
It's just so interesting
kTweaks
@EricLegend
yeah it's def a crazy tech
SRLB
@SRLB
And just starting to understand the possibilities of Ethereum
Profound
Bung
@bung87
has anyone successfully run the example contract sell function? as so far I have created a contract base on the example and use a account buy some tokens,transfer tokens,set Prices all be done
Steve
@swatarianess
which example contract sell function?
Bung
@bung87
https://www.ethereum.org/token this official site
Steve
@swatarianess
okay, i did not understand the question. Are you asking if the sell function works or if anyone has used it before?
To answer both, yes. :p
Bung
@bung87
I use web3.eth.sendTransaction to start a transaction like other process,after mining does not see any changes,for example the account I want to sell token still keep 10 tokens I just bought.
I want to check the sell function works
Steve
@swatarianess
if you want to check the sell function works, you need to interact with the contract instance, in particular with the sell function
Bung
@bung87
as so far I known to change data in blockchain should use sendTransaction ,contract instance .sell does not affect the block chain
Steve
@swatarianess
the sell function does in fact change state in the blockchain.
modifying the amounts in the mapping balanceOf
Bung
@bung87
hmm ,If I call sell directly on contract instance ,then what is the msg in the function body?
eg. msg.sender is who
Steve
@swatarianess
msg.sender is the account that called the function
the account currently interacting with the contract instance
Bung
@bung87
I' m confused,the code "contractInstance.sell()" does not contains any account info,you meaning the currently unlocked account ?
Steve
@swatarianess
The currently account that is unlocked and sent the transaction to the contractInstance
Bung
@bung87
ins.sell(10)
Error: invalid address
Steve
@swatarianess
the whole contractInstance itself "internally" has data on the account interacting with it
from what i have found msg.sender & msg.value
Bung
@bung87
so I just cant call sell directly on contract instance
Steve
@swatarianess
you should be able to sell directly on contract instance
Bung
@bung87
but sendTransaction yet not work out,That`s my question
Steve
@swatarianess
have you tested out your code in Remix?
Bung
@bung87
yes,just got two warnings
Steve
@swatarianess
what were the warnings?
Bung
@bung87
Gas requirement of function browser/ballot.sol:MyAdvancedToken.sell(uint256)unknown or not constant.
MyAdvancedToken.MyAdvancedToken(uint256,bytes32,bytes32): Potentially should be constant but is not.
Steve
@swatarianess
not sure about the 2nd warning, but with the first one i get for a few of my functions
Bung
@bung87
The contract I created just the short version of official example,as It just warning level message I think it does not matters the contract development
any idea about my question?
Steve
@swatarianess
hmm looking at the contract example code
you bought enough tokens to sell with the currently unlocked account, correct?
Bung
@bung87
ins.balanceOf myaccount is 10,the transaction I want send data is ins.sell.getData(10)
then I send transaction with from myaccount address to contract instance address with the data above