-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERC20 totalSupply changed from public property to a function #666
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Fixes #434
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ pragma solidity ^0.4.18; | |
* @dev see https://github.com/ethereum/EIPs/issues/179 | ||
*/ | ||
contract ERC20Basic { | ||
uint256 public totalSupply; | ||
function totalSupply() public view returns (uint256); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I got a compilation error because of this. It tells the following:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where did that happen @hlogeon? If you can reproduce would you mind opening a new issue please? |
||
function balanceOf(address who) public view returns (uint256); | ||
function transfer(address to, uint256 value) public returns (bool); | ||
event Transfer(address indexed from, address indexed to, uint256 value); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we had said that we were going to use an underscore as a prefix, instead of a suffix, am I right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, hence the last comment on the PR: