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:
Chris Chinchilla
2019-06-24 14:32:53 +02:00
parent 4d3fa7a6cc
commit 30e843a217
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -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.