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

10 lines
329 B
Solidity
Raw Normal View History

2021-08-20 16:47:38 +00:00
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(){ msg.value: 0 }