EYBlockchain / starlight

:zap: solidity --> zApp transpiler :zap:
Other
188 stars 38 forks source link

Error for fully public contract. #336

Open lydiagarms opened 1 month ago

lydiagarms commented 1 month ago

When a contract is fully public and no secret variables are used in any of the functions, we should get a zappify error as there is no need to use starlight, for example:

pragma solidity ^0.8.0;

contract Receipt {

mapping (address => Rct) private total; secret uint256 a;

struct Rct { uint256 amount; uint256 tax; }

function add(Rct memory myrct, address user) public { total[user].amount += myrct.amount; total[user].tax += myrct.tax; }

}