Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for fully public contract. #336

Open
lydiagarms opened this issue Sep 17, 2024 · 0 comments
Open

Error for fully public contract. #336

lydiagarms opened this issue Sep 17, 2024 · 0 comments

Comments

@lydiagarms
Copy link
Contributor

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;
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant