mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removing tests that are not useful anymore
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
// This used to be a test for a.transfer to generate a warning
|
||||
// because A's fallback function is not payable.
|
||||
|
||||
contract A {
|
||||
function() external {}
|
||||
}
|
||||
|
||||
contract B {
|
||||
A a;
|
||||
|
||||
function() external {
|
||||
address(a).transfer(100);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
@@ -1,13 +0,0 @@
|
||||
// This used to be a test for a.transfer to generate a warning
|
||||
// because A does not have a payable fallback function.
|
||||
|
||||
contract A {}
|
||||
|
||||
contract B {
|
||||
A a;
|
||||
|
||||
function() external {
|
||||
address(a).transfer(100);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
-15
@@ -1,15 +0,0 @@
|
||||
// This used to be a test for a.send to generate a warning
|
||||
// because A does not have a payable fallback function.
|
||||
|
||||
contract A {
|
||||
function() external {}
|
||||
}
|
||||
|
||||
contract B {
|
||||
A a;
|
||||
|
||||
function() external {
|
||||
require(address(a).send(100));
|
||||
}
|
||||
}
|
||||
// ----
|
||||
Reference in New Issue
Block a user