You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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;
}
}
The text was updated successfully, but these errors were encountered: