diff options
author | Gav Wood <i@gavwood.com> | 2015-01-28 08:56:39 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-01-28 08:56:39 +0800 |
commit | 5d3e21fd937940721c6c693c39d1fdc79e1f27c6 (patch) | |
tree | ccf91aa9fb919b99d05450ac77322ac4adccefce /CompilerStack.cpp | |
parent | 18fc2ed2d6a58b0064f6c1d2430ffe988f68b7ca (diff) | |
download | dexon-solidity-5d3e21fd937940721c6c693c39d1fdc79e1f27c6.tar.gz dexon-solidity-5d3e21fd937940721c6c693c39d1fdc79e1f27c6.tar.zst dexon-solidity-5d3e21fd937940721c6c693c39d1fdc79e1f27c6.zip |
LogFilter supports new, better, filter mechanism.
Exposed to JS API.
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r-- | CompilerStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp index a8ba037f..2917a382 100644 --- a/CompilerStack.cpp +++ b/CompilerStack.cpp @@ -145,7 +145,7 @@ string CompilerStack::expanded(string const& _sourceCode) { "CoinReg", "contract CoinReg{function count()constant returns(uint256 r){}function info(uint256 i)constant returns(address addr,string3 name,uint256 denom){}function register(string3 name,uint256 denom){}function unregister(){}}" }, { "coin", "#require CoinReg\ncontract coin {function coin(string3 name, uint denom) {CoinReg(Config().lookup(3)).register(name, denom);}}" }, { "service", "#require Config\ncontract service{function service(uint _n){Config().register(_n, this);}}" }, - { "owned", "contract owned{function owned(){owner = msg.sender;}address owner;}" }, + { "owned", "contract owned{function owned(){owner = msg.sender;}modifier onlyowner(){if(msg.sender==owner)_}address owner;}" }, { "mortal", "#require owned\ncontract mortal is owned {function kill() { if (msg.sender == owner) suicide(owner); }}" }, { "NameReg", "contract NameReg{function register(string32 name){}function addressOf(string32 name)constant returns(address addr){}function unregister(){}function nameOf(address addr)constant returns(string32 name){}}" }, { "named", "#require Config NameReg\ncontract named {function named(string32 name) {NameReg(Config().lookup(1)).register(name);}}" }, |