diff options
author | chriseth <c@ethdev.com> | 2015-03-10 02:22:43 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-03-10 02:22:43 +0800 |
commit | 9c82cbeddf1b03cc99660a867de8720d1d174b9c (patch) | |
tree | 3efc5371eb10398627ec8e1ea05d734783b50f85 /GlobalContext.cpp | |
parent | cd8a0ab65d387cd88f3062f937a456b7c0e33b5c (diff) | |
download | dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar.gz dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar.bz2 dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar.lz dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar.xz dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.tar.zst dexon-solidity-9c82cbeddf1b03cc99660a867de8720d1d174b9c.zip |
Global variable "now" (alias for block.timestamp).
Diffstat (limited to 'GlobalContext.cpp')
-rw-r--r-- | GlobalContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/GlobalContext.cpp b/GlobalContext.cpp index 60de5105..411e99ab 100644 --- a/GlobalContext.cpp +++ b/GlobalContext.cpp @@ -37,6 +37,7 @@ GlobalContext::GlobalContext(): m_magicVariables(vector<shared_ptr<MagicVariableDeclaration const>>{make_shared<MagicVariableDeclaration>("block", make_shared<MagicType>(MagicType::Kind::Block)), make_shared<MagicVariableDeclaration>("msg", make_shared<MagicType>(MagicType::Kind::Message)), make_shared<MagicVariableDeclaration>("tx", make_shared<MagicType>(MagicType::Kind::Transaction)), + make_shared<MagicVariableDeclaration>("now", make_shared<IntegerType>(256)), make_shared<MagicVariableDeclaration>("suicide", make_shared<FunctionType>(strings{"address"}, strings{}, FunctionType::Location::Suicide)), make_shared<MagicVariableDeclaration>("sha3", |