bitcoin-sv / sol2scrypt

Solidity to sCrypt Transplier
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Contact `SimpleStorage` must have at least one public function #131

Closed zhfnjust closed 2 years ago

zhfnjust commented 2 years ago
pragma solidity ^0.8.10;

contract SimpleStorage {
    uint storedData;

    function foo2() public {
        storedData++;
        return ;
        storedData++;
    }
}
contract SimpleStorage {
  @state
  int storedData;

  function foo2() : bool {
    this.storedData++;
    this.storedData++;
    return true;
  }
}
zhfnjust commented 2 years ago

change foo2 to external