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
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;
If I type it like that. It give me a waring. How can I do it right. So the kunde1 has a fix address.
thanks for the help
Daniel
@DanielRX
What is the warning...?
Julian Sauer
@notorious-clay
browser/Payment.sol:5:29: Warning: This looks like an address but has an invalid checksum. If this is not used as an address, please prepend '00'. Correct checksummed address: '0xca35b7d915458ef540ade6068dfe2f44e8fa733c.'
area
@area
pragma solidity ^0.4.21;
pragma experimental ABIEncoderV2;

contract NestedArrays {

    function test1(uint256[][3] u) returns (uint256 x){
        x = u[0][0] + u[1][0] + u[2][0];
    }

}
The above compiles, but I am unable to get it working correctly, either in remix or with a truffle test. When I run in remix, and pass something like [[1],[2,3],[4,5]] the transaction reverts and the 'decoded input' is very clearly wrong. A function declared with uint256[3][] works as expected, but that's not what I want (i.e. I want to pass an array containing three variable length arrays, not an array containing a variable number of arrays with length three). Is such a function parameter not properly supported, even though it compiles?
Jim McDonald
@mcdee
@notorious-clay Solidity expects addresses to conform to EIP-55 checksumming. In your case that address should be listed as 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c (note some upper-case letters)
@notorious-clay you might also want to consider updating your version of Solidity to one more recent, as it will show the correct error message and checksummed version of the address
Daniel
@DanielRX
@mcdee he did post the error message which listed the address but seems it failed to checksum it
(he used remix which may be why)
phalexo
@phalexo
Has ERC223 been accepted as a "standard"? Or is it still in the air? Thanks.
facundomedica
@facundomedica
Its status is "draft", it should be "accepted" to be a standard
Julian Sauer
@notorious-clay
thanks @mcdee
what is the latest version of solidity?
facundomedica
@facundomedica
@notorious-clay 0.4.21
ethernian
@ethernian

hello guys,
I have just constructed and successfully executed a token transfer transaction with extra data behind the message call (check extra 8888 added at the end of tx payload).
https://etherscan.io/tx/0xac41ca71ce075d7efb031433b205f99382cd63532de684b4437a23096b242c74

It seems working, but the question is: is it specified in solidity or it can change any time?
It is could be interesting as the base for stealth token transaction in ethereum

Daniel
@DanielRX
Is it possible for the bytecode for a contract to differ on etherchain and etherscan?