Skip to content

Commit 64ebb29

Browse files
committed
migrate cadence source code, remove unused old utility contracts, update flow.json
1 parent 5ea01c5 commit 64ebb29

16 files changed

+38
-2993
lines changed

cadence/contracts/.gitkeep

Whitespace-only changes.

cadence/contracts/Person.cdc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// A simple Person contract
44
//
55
// reference: https://developers.flow.com/cadence/language/contracts
6-
pub contract Person {
6+
access(all) contract Person {
77
// declaration of a public variable
8-
pub var name: String
8+
access(all) var name: String
99

1010

1111
// initialization method for our contracts, this gets run on deployment
@@ -14,21 +14,21 @@ pub contract Person {
1414

1515
}
1616

17-
pub fun sayHello(): String {
17+
access(all) fun sayHello(): String {
1818
return "Hello, my name is ".concat(self.name)
1919
}
2020

2121
// create a new friendship resource
22-
pub fun makeFriends(): @Friendship {
22+
access(all) fun makeFriends(): @Friendship {
2323
return <-create Friendship()
2424
}
2525

2626
// Friendship resource are types of values that can only exist in one place
2727
//
2828
// read more about this unique and powerful Cadence feature here https://developers.flow.com/cadence/language/resources
29-
pub resource Friendship {
29+
access(all) resource Friendship {
3030
init() {}
31-
pub fun yaay() {
31+
access(all) fun yaay() {
3232
log("such a nice friend") // we can log to output, useful on emualtor for debugging
3333
}
3434
}

cadence/contracts/utility/FungibleToken.cdc

Lines changed: 0 additions & 237 deletions
This file was deleted.

0 commit comments

Comments
 (0)