Open lydiagarms opened 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; }
}
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; }
}