Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 10 2017 22:42
    @jpitts banned @etherchamp1_twitter
  • Jun 05 2016 10:33
    @chriseth banned @adamskee
cheetah1295
@cheetah1295
image.png
if you see at the right the account that execute the function is supposed to be a voter the owner added
however, it seems that ( the addvoters[msg.sender].adr == msg.sender) is false , but the 2 addresses are supposed to be the same ( this is what I want to have actually)
Dillon Vincent
@dillonsvincent
Daniel
@DanielRX
@cheetah1295 use "" around an address
Gernot Pokorny
@gernotpokorny
hello
I'm currently starting to learn solidity
Can somebody explain me where the satte of a state variable is stored?
is it stored on the blockchain or on the RAM of the node?
Gernot Pokorny
@gernotpokorny
Can somebody tell me when the contract is compiled to bytecode and is on the blockchain how can somebody verify what the smart contract code is and check where he wants to use the smart contract or not?
Is it necessary to include the source code somewhere + compiler information? Does this then deterministically compile everytime to the same bytecode?
Manish Ranjan
@bit-warrior
@gernotpokorny state of state variable is saved into state trie/tree. its not saved in RAM of node , it goes in blockchain datastore.
SkyClean
@SkyClean
Hello
I have Error: gas required exceeds allowance or always failing transaction when creating smart contract on remix.
Gernot Pokorny
@gernotpokorny
@bit-warrior what is meant with blockchain datastore? It is part of the blockchain?
SkyClean
@SkyClean
please give me tips
how to make contract with avoiding gas exceeds?
@gernotpokorny smart contract will be saved on blockchain.
Gernot Pokorny
@gernotpokorny
@SkyClean what is this datastorage?
Manish Ranjan
@bit-warrior
@gernotpokorny
Like for Geth, all the data related to the blockchain are saved in levelDB in form of different tries, like transaction trie, state tries, transaction receipt trrie. Level db is key-value database developed by Google.
SkyClean
@SkyClean
@bit-warrior can you give me some tips?
Gernot Pokorny
@gernotpokorny
@bit-warrior Ok so that means something like variable-states are generated by the txs and stored on the harddrive of the node. Once a new tx comes in the db on the harddrive of the node gets modified. So erc20 tokens are essentially stored in a database on the node?
Manish Ranjan
@bit-warrior
@SkyClean where are you deploying ur contract local EVM or a outside network?
Manish Ranjan
@bit-warrior
@gernotpokorny ecr tokens are contract to hold assets(something xyz coin) . So for example, u own 100 xyz coin at an ethereum address , this fact that you own 100 coin would be stored in the state trie, but ability to spend it will be controlled private key that hold.
Gernot Pokorny
@gernotpokorny
@bit-warrior ok and it is stored in thos levelDB? The blockchain is it also a db or does the blockchain consist of simple txt files?
SkyClean
@SkyClean
@bit-warrior I"m deploying contract to rospen test Net
with metamask
Gernot Pokorny
@gernotpokorny
On the blockchain contracts are stored as binary code?
Manish Ranjan
@bit-warrior
@gernotpokorny I have not seen anywhere in Ethereum specification any kind of recommendation about saving data in db vs file system. As long as you comply to the data structure recommended by specification , i guess u can choose to save anywhere you like.
Gernot Pokorny
@gernotpokorny
@bit-warrior I mean how does the geth implementation store the blockchain?
Manish Ranjan
@bit-warrior
Geth uses leveldb
Parity i guess uses Rocksdb
SkyClean
@SkyClean
@bit-warrior I"m deploying contract to rospen test Net
with metamask
but the contract has some big code amount.
so gas exceed error occurred
how can I avoid this error to make smart contract @bit-warrior
?
Destinatis
@destinatis
can someone help me
i deploy a smart contract, pass an address into a constructor
and store it
then i retrieve the address and its diffferent
are we not able to pass address type to constructor or something from remix?
Fatih AltuntaƟ
@altuntasfatih
Screen Shot 2018-03-20 at 07.21.22.png
in remix,you can do it like in picture
Destinatis
@destinatis
i see i need quotes
thanks man
Gernot Pokorny
@gernotpokorny
@bit-warrior Is information about accounts like balance and nonce etc also stored in the levelDB?
vasudev
@patelvasu
"gas required exceeds allowance or always failing transaction " this error get in remix
bluemoon2014
@bluemoon2014
what happened when i user new someContract? Does this deploy a new contract?