solidity/test/libsolidity/smtCheckerTests/blockchain_state/balance_zero.sol

12 lines
474 B
Solidity
Raw Normal View History

2021-08-20 16:47:38 +00:00
contract C {
constructor() {
assert(address(this).balance == 0); // should fail because there might be funds from before deployment
assert(address(this).balance > 0); // should fail
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (32-66): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()
// Warning 6328: (137-170): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()