aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ViewPureChecker.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-03-07 02:13:55 +0800
committerGitHub <noreply@github.com>2018-03-07 02:13:55 +0800
commitba8819542fa2e4f0079323e6fefd0ba6ee9ea916 (patch)
treea892e782d11f389c9f1950142af1b81c08f5595f /test/libsolidity/ViewPureChecker.cpp
parentbaa152653916ef131f0f738431cbf2fd2bbb0408 (diff)
parent1ceb0b04c1ce117366cde88eb8c3bebb1a5e9598 (diff)
downloaddexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar.gz
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar.bz2
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar.lz
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar.xz
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.tar.zst
dexon-solidity-ba8819542fa2e4f0079323e6fefd0ba6ee9ea916.zip
Merge pull request #3611 from ethereum/warn-using-address-overload
Warn if using address overloads on contracts
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r--test/libsolidity/ViewPureChecker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp
index ed4cf792..26ff461c 100644
--- a/test/libsolidity/ViewPureChecker.cpp
+++ b/test/libsolidity/ViewPureChecker.cpp
@@ -280,11 +280,11 @@ BOOST_AUTO_TEST_CASE(builtin_functions)
string text = R"(
contract C {
function f() public {
- this.transfer(1);
- require(this.send(2));
- selfdestruct(this);
- require(this.delegatecall());
- require(this.call());
+ address(this).transfer(1);
+ require(address(this).send(2));
+ selfdestruct(address(this));
+ require(address(this).delegatecall());
+ require(address(this).call());
}
function g() pure public {
bytes32 x = keccak256("abc");