solidity icon indicating copy to clipboard operation
solidity copied to clipboard

Internal call to contract selfdestruct

Open beillahi opened this issue 5 years ago • 1 comments
trafficstars

pragma solidity ^0.5.0;


contract test {

  function g(address payable a)  public {   
    selfdestruct(a);
  }
}
-----------------
Error while running verifier, details:
[TRACE] Using prover: /usr/bin/z3
Parsing /tmp/tmp7s2u6u6t/test9.sol.bpl
/tmp/tmp7s2u6u6t/test9.sol.bpl(18,1): Error: call to undeclared procedure: selfdestruct#35
1 name resolution errors detected in /tmp/tmp7s2u6u6t/test9.sol.bpl

beillahi avatar Dec 03 '19 15:12 beillahi

We can encode transfer of value, no big deal. Specifying the behavior past that can be part of #104.

dddejan avatar Dec 05 '19 16:12 dddejan