diff options
author | Fabio Berger <me@fabioberger.com> | 2018-05-23 02:40:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-23 02:40:27 +0800 |
commit | 96febf663924445363e0120b7341bf0c12b03700 (patch) | |
tree | 73930dcb56db0c1ef38befea5418847ff09e189f /packages/metacoin | |
parent | 09e59cf67761e86046221d058a9632730a5a632a (diff) | |
parent | 5456187dd03c0dd5eb141259541e7fe65f2c9ad8 (diff) | |
download | dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.gz dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.bz2 dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.lz dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.xz dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.tar.zst dexon-sol-tools-96febf663924445363e0120b7341bf0c12b03700.zip |
Merge pull request #605 from 0xProject/fix/multiple/build-errors
Fix build/lint errors and warnings
Diffstat (limited to 'packages/metacoin')
-rw-r--r-- | packages/metacoin/contracts/Metacoin.sol | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/metacoin/contracts/Metacoin.sol b/packages/metacoin/contracts/Metacoin.sol index ac212b32e..dc67e6242 100644 --- a/packages/metacoin/contracts/Metacoin.sol +++ b/packages/metacoin/contracts/Metacoin.sol @@ -1,4 +1,4 @@ -pragma solidity ^0.4.21; +pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; contract Metacoin { @@ -16,7 +16,7 @@ contract Metacoin { uint32 callback; } - function Metacoin() public { + constructor () public { balances[msg.sender] = 10000; } @@ -24,7 +24,7 @@ contract Metacoin { if (balances[msg.sender] < transferData.amount) return false; balances[msg.sender] -= transferData.amount; balances[transferData.to] += transferData.amount; - Transfer(msg.sender, transferData.to, transferData.amount); + emit Transfer(msg.sender, transferData.to, transferData.amount); return true; } |