Private variables can be read off-chain and are not secure to keep sensitive data. Anyone can read owners secret password accessing contract's storage slots.
Copy this file in to the code repo. Save as readPassword.js
Run make anvil
in one terminal window.
Run make deploy
in another terminal window.
The run node readPassword.js
.
Anyone can read owner secret password.
VScode, Foundry, Ethers
Do not store any sensitive information on-chain. It is not a good idea because anyone can read the contract storage off-chain and get your "secret" data.
Private functions and state variables are only visible for the contract they are defined in and not in derived contracts. In this case private doesn't mean secret/confidential
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.