Skip to content

Commit 3927e0e

Browse files
authored
Create DogShelter.cdc
1 parent 5e0d9e3 commit 3927e0e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cadence/contracts/DogShelter.cdc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
pub contract DogShelter {
3+
init() {}
4+
5+
pub resource Dog {
6+
pub var name: String
7+
8+
init(name: String) {
9+
self.name = name
10+
}
11+
}
12+
13+
pub fun addoptDog(name: String): @Dog {
14+
return <- create Dog(name: name)
15+
}
16+
}

0 commit comments

Comments
 (0)