Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
b414545b
Commit
b414545b
authored
Jul 28, 2017
by
Logan Saether
Committed by
GitHub
Jul 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typos XP
parent
3296471b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
BurnableToken.sol
contracts/token/BurnableToken.sol
+4
-5
No files found.
contracts/token/BurnableToken.sol
View file @
b414545b
...
@@ -6,7 +6,7 @@ import './StandardToken.sol';
...
@@ -6,7 +6,7 @@ import './StandardToken.sol';
* @title Burnable Token
* @title Burnable Token
* @dev Token that can be irreversibly burned (destroyed).
* @dev Token that can be irreversibly burned (destroyed).
*/
*/
contract BurnableToken is StandardToken{
contract BurnableToken is StandardToken
{
/**
/**
* @dev Burns a specific amount of tokens.
* @dev Burns a specific amount of tokens.
...
@@ -17,11 +17,11 @@ contract BurnableToken is StandardToken{
...
@@ -17,11 +17,11 @@ contract BurnableToken is StandardToken{
{
{
require(_value > 0);
require(_value > 0);
address burner = m
a
sg.sender;
address burner = msg.sender;
balances[burner] = balance
d
[burner].sub(_value);
balances[burner] = balance
s
[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
Burn(burner, _value);
}
}
event Burn(address indexed burner, uint indexed value);
event Burn(address indexed burner, uint indexed value);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment