solidity/test/libsolidity/smtCheckerTests/blockchain_state/balance_receive_3.sol
2021-08-25 21:10:08 +02:00

10 lines
313 B
Solidity

contract C {
constructor() payable {
assert(address(this).balance == msg.value); // should fail because there might be funds from before deployment
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (40-82): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()