aboutsummaryrefslogtreecommitdiffstats
path: root/std/StandardToken.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-23 05:42:04 +0800
committerGitHub <noreply@github.com>2018-02-23 05:42:04 +0800
commit2b62c201be166222f05acfa8422b1968f2cf924a (patch)
tree501613fa210a9c0f9e74f1f277ccb6a117d5c639 /std/StandardToken.sol
parent97d1c70491c027051feac065c827b223ce6acf11 (diff)
parentb5a3b6a4293537c843e8387ffd0b03253160dc0a (diff)
downloaddexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.gz
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.bz2
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.lz
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.xz
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.tar.zst
dexon-solidity-2b62c201be166222f05acfa8422b1968f2cf924a.zip
Merge pull request #3538 from ethereum/emitEvents
emit pseudo-keyword for events.
Diffstat (limited to 'std/StandardToken.sol')
-rw-r--r--std/StandardToken.sol4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/StandardToken.sol b/std/StandardToken.sol
index 2986cb56..1b218d67 100644
--- a/std/StandardToken.sol
+++ b/std/StandardToken.sol
@@ -40,7 +40,7 @@ contract StandardToken is Token {
if (balance[_from] >= _value && balance[_to] + _value >= balance[_to]) {
balance[_from] -= _value;
balance[_to] += _value;
- Transfer(_from, _to, _value);
+ emit Transfer(_from, _to, _value);
return true;
} else {
return false;
@@ -49,7 +49,7 @@ contract StandardToken is Token {
function approve(address _spender, uint256 _value) public returns (bool success) {
m_allowance[msg.sender][_spender] = _value;
- Approval(msg.sender, _spender, _value);
+ emit Approval(msg.sender, _spender, _value);
return true;
}