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
Aminadav Glickshtein
@Aminadav
.
Daniel
@DanielRX
If it is not included in the deployed main contract, does the compile optim it out?
Aminadav Glickshtein
@Aminadav

So do you agree with me, that if Solidity compiler was smarter, he can see that those contracts never used (The deployed contract no inherit any of them), and it can skip compiling it?

It can save bytes & gas.

Daniel
@DanielRX
Does it not already?
Aminadav Glickshtein
@Aminadav
It seems that not. You see that the verified source contain it.
Daniel
@DanielRX
Yes, so if the compiler removes it, the source will compile to the deployed contract
Aminadav Glickshtein
@Aminadav
About what you said early. First deploy as a token, second as a crowdsale.
But the crowdsale is for selling tokens, but the crowdsale, do not have access to the deployed contract with the tokens.
So how is it possible to split it to two deploys?
Daniel
@DanielRX
You just point the crowdsale to the token contract, in a variable
Aminadav Glickshtein
@Aminadav
So if two contract are deployed. Where the wallet balances exists?
In the first contract , or the second contract?
Daniel
@DanielRX
Whichever is the stores the tokens
Aminadav Glickshtein
@Aminadav
So how the 2nd contract can change the state of the balance of the token?
If I will deploy a new contract, it can't transfer token balances. How the second contract can have permissions to do those changes?
Daniel
@DanielRX
You add a modifier (onlyCrowdsale) that allows it to transfer
Notice how these have the same source, but different bytecode
Aminadav Glickshtein
@Aminadav
Cool.
Daniel
@DanielRX
So they method is not wasteful, but shows a big flaw in the verification
Aminadav Glickshtein
@Aminadav
  1. Thanks for help me understand. So the source code verification do not contain all the contracts code.
  2. I'm not understand your answer "You add a modifier (onlyCrowdsale) that allows it to transfer)

They don't have this modifier.

The question is how is it possible to split the code of a token to 2 deployed contracts.
You said the first deployed contract may be as a token.
The second as a crowdsale.

Now the question: How the contract of the crowdsale have permissions and access to change balances that exist in the 1st contract?

The only idea I have maybe the first deployed contract sets the owner as the address of the second deployed contract. From the point, the second deployed contract, can make any balances changes using the owner permissions.
But it seems that even owner do not have access to change token balances.
Daniel
@DanielRX
1) yes they do
2) this token may not, but another token might is what I am saying
this is only one version of an ERC20 token
Aminadav Glickshtein
@Aminadav
Thanks!
Dillon Vincent
@dillonsvincent

Hi everyone-

Please take a minute to help make smart contract development better for everyone. Im conducting a short survey of only 9 questions.

Thanks for your time,
https://goo.gl/forms/3O0fGVShtoamYLXM2
Dillon

Aminadav Glickshtein
@Aminadav
@DanielMReed You right. I have found the "first" crowdsale contract:
https://etherscan.io/address/0x0c68fc2a91a81369956603bccbcdb95b87758b63#code
laitassou
@laitassou
My first dapp is soon coming
My service is carpooling between users
phalexo
@phalexo
I am curious how blockchain is useful for carpooling?
Daniel
@DanielRX
It's not, AFAIK
It will just be the same as all these "blockchain version of X" projects
laitassou
@laitassou
Carpooling is that you propose ride with your car and users who want to travel participate to fees
and blockchain is a system for reservation and paiment here
@phalexo hope this answers your question
beether
@beether
Is it at all possible to verify, from an on-chain contract, that another contract implements some library?
mryellow
@mryellow
jebuske
@jebuske
If I have ContractA is contractB, Pausable and I want to be able to call a function from contractB even when ContractA is paused. How should I do this? its inheriting from ContractB so I cannot add a modifier in contractA?
cryptodon15
@cryptodon15_twitter
Hey Guys any thoughts on this..... www.FluidAI.co
phalexo
@phalexo
@jebuske You are confused about what Pausable does. Particular methods with modifier whenNotPaused are made to revert in case pause == true. There is no such thing as pausing a contract.
jebuske
@jebuske
@phalexo Sorry, I maybe didnt explain myself correctly. So I have a contract ContractA is contractB, Pausable. When I change the pausedState of contractA to true I can no longer call the methods of contractB that it inherit because its in the paused state? I want to use the whenPaused modifier on these methods of contractB but I’m confused how this could be done
phalexo
@phalexo
As long as methods inherited from contractB do not have that modifier on them you can call them. You can also have two(2) Pausable contracts, i.e. PausableA and PausableB controlling methods of A and B separately. Have to use different names for modifiers and flags.
jebuske
@jebuske
@phalexo I’m afraid I dont understand how methods from ContractB can have a modifier from contractA on them? I guess thats what I’m trying to ask
I tried adding whenPaused in contractB but that doesnt work
Micky Socaci
@mickys
@jebuske ContractA is ContractB, Pausable, -> if you deploy contractA at 0x01, and then deploy ContractB to 0x0X, A will have the full code of B, and code changes that A does, but they do not share state / storage, you inherit / extend b's code
they're not linked inside the blockchain in any way
Uthai Rattanapacksopon
@calltong
0x8eb730425d44abb2f5f70f042c08c8214de4160c
beether
@beether
@mryellow yes, exactly
ive tried all sorts of things
Daniel
@DanielRX
Anyone have a suggestion for resources on sidechains for ethereum?
Julian Sauer
@notorious-clay
Simple question. I just can't find the result. address public kunde1 = 0xca35b7d915458ef540ade6068dfe2f44e8fa733c;