We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/** * @modifier secret (use current token and replace it by new _token) * @set hidden * @param bytes32 secret (the revealed secret) * @param bytes32 token (the keccak256 hash of next secret) * @throws["new token already used", "secret does not matches current token"] */ modifier secret(bytes32 secret, bytes32 _token){ if(tokens[_token] == true) throw; if(keccak256(secret) != this.token) throw; tokens[this.token] = true; this.token = _token; } /** * @function setOwner (changes owner using rolling secret) * @modifier secret */ function setOwner(bytes32 secret, bytes32 _token, address newOwner) secret(secret, _token) external { this.owner = newOwner; } */
This comments params could also help IDE to identify the contracts deployed by other contracts, with parameters like @deploys ["MyToken","MyStorage"].
@deploys ["MyToken","MyStorage"]
Can we have it?
The text was updated successfully, but these errors were encountered:
I noticed that solidity already implement some of them, so should follow their pattern https://github.com/ethereum/wiki/wiki/Solidity,-Docs-and-ABI and include others by using other notation
Sorry, something went wrong.
No branches or pull requests
This comments params could also help IDE to identify the contracts deployed by other contracts, with parameters like
@deploys ["MyToken","MyStorage"]
.Can we have it?
The text was updated successfully, but these errors were encountered: