mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Adds deprecation reminder for constant modifier in Solidity English documentation.
This commit is contained in:
parent
215d688c06
commit
6bdff7f79a
@ -111,6 +111,7 @@ contract SimpleBank { // CapWords
|
|||||||
/// @return The balance of the user
|
/// @return The balance of the user
|
||||||
// 'constant' prevents function from editing state variables;
|
// 'constant' prevents function from editing state variables;
|
||||||
// allows function to run locally/off blockchain
|
// allows function to run locally/off blockchain
|
||||||
|
// NOTE: 'constant' on functions is an alias to 'view', but this is deprecated and is planned to be dropped in version 0.5.0.
|
||||||
function balance() constant public returns (uint) {
|
function balance() constant public returns (uint) {
|
||||||
return balances[msg.sender];
|
return balances[msg.sender];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user