solidity/test/libsolidity/smtCheckerTests/external_calls/call_with_value_1.sol
2021-09-01 20:18:37 +02:00

15 lines
426 B
Solidity

contract C {
function g(address payable i) public {
require(address(this).balance == 100);
i.call{value: 10}("");
// Disabled due to Spacer nondeterminism
//assert(address(this).balance == 90); // should hold
// Disabled due to Spacer nondeterminism
//assert(address(this).balance == 100); // should fail
}
}
// ====
// SMTEngine: all
// ----
// Warning 9302: (96-117): Return value of low-level calls not used.