mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
State what default value of enum in example is
Fix formatting issue and add mention of the enum default type Other files
This commit is contained in:
@@ -13,6 +13,7 @@ Safe Remote Purchase
|
||||
address payable public seller;
|
||||
address payable public buyer;
|
||||
enum State { Created, Locked, Inactive }
|
||||
// The state variable has a default value of the first member, `State.created`
|
||||
State public state;
|
||||
|
||||
// Ensure that `msg.value` is an even number.
|
||||
|
||||
Reference in New Issue
Block a user