We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3927e0e commit 98ad1ebCopy full SHA for 98ad1eb
cadence/contracts/Person.cdc
@@ -1,9 +1,9 @@
1
import "DogShelter"
2
3
// A simple Person contract
4
- //
5
- // reference: https://developers.flow.com/cadence/language/contracts
6
- pub contract Person {
+//
+// reference: https://developers.flow.com/cadence/language/contracts
+pub contract Person {
7
// declaration of a public variable
8
pub var name: String
9
pub var dog: @DogShelter.Dog
@@ -17,7 +17,7 @@ import "DogShelter"
17
pub fun sayHello(): String {
18
return "Hello, my name is ".concat(self.name)
19
}
20
-
+
21
// create a new friendship resource
22
pub fun makeFriends(): @Friendship {
23
return <-create Friendship()
0 commit comments