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 fb45dfc commit 4d413dfCopy full SHA for 4d413df
cadence/transactions/makeFriends.cdc
@@ -0,0 +1,19 @@
1
+// read more about Cadence transactions here https://developers.flow.com/cadence/language/transactions
2
+import "Person"
3
+
4
+transaction {
5
+ let acc: AuthAccount
6
7
+ prepare(signer: AuthAccount) {
8
+ self.acc = signer
9
+ }
10
11
+ pre {}
12
13
+ execute {
14
+ // save the resource to the storage, read more about it here https://developers.flow.com/cadence/language/accounts#account-storage
15
+ self.acc.save<@Person.Friendship>(<-Person.makeFriends(), to: StoragePath(identifier: "friendship")!)
16
17
18
+ post {}
19
+}
0 commit comments