diff options
author | chriseth <chris@ethereum.org> | 2018-07-01 00:09:13 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-15 16:45:16 +0800 |
commit | 9328ea4c3c023950e59405941cfc25ec4c0ed1b4 (patch) | |
tree | e2481f85477a18b935d0fb43d7901ef501175347 /libsolidity/analysis/ViewPureChecker.cpp | |
parent | 3c5226cefb9f883277530decedc08e2e48ed3050 (diff) | |
download | dexon-solidity-9328ea4c3c023950e59405941cfc25ec4c0ed1b4.tar.gz dexon-solidity-9328ea4c3c023950e59405941cfc25ec4c0ed1b4.tar.zst dexon-solidity-9328ea4c3c023950e59405941cfc25ec4c0ed1b4.zip |
Add abi.decode(bytes data, (...))
Diffstat (limited to 'libsolidity/analysis/ViewPureChecker.cpp')
-rw-r--r-- | libsolidity/analysis/ViewPureChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/ViewPureChecker.cpp b/libsolidity/analysis/ViewPureChecker.cpp index d936ada0..e92ad2fa 100644 --- a/libsolidity/analysis/ViewPureChecker.cpp +++ b/libsolidity/analysis/ViewPureChecker.cpp @@ -295,7 +295,7 @@ void ViewPureChecker::endVisit(MemberAccess const& _memberAccess) { // we can ignore the kind of magic and only look at the name of the member set<string> static const pureMembers{ - "encode", "encodePacked", "encodeWithSelector", "encodeWithSignature", "data", "sig", "blockhash" + "encode", "encodePacked", "encodeWithSelector", "encodeWithSignature", "decode", "data", "sig", "blockhash" }; if (!pureMembers.count(member)) mutability = StateMutability::View; |