File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ transaction {
6
6
prepare (acct : auth (Storage, Capabilities) &Account) {
7
7
// Create a new empty Vault object
8
8
let vaultA <- ExampleToken.createEmptyVault ()
9
-
9
+
10
10
// Store the vault in the account storage
11
11
acct.storage.save< @ExampleToken.Vault> (<- vaultA, to: / storage/ MainVault)
12
12
13
13
log (" Empty Vault stored" )
14
14
15
15
// Create a public Receiver capability to the Vault
16
- let receiverCap = acct.capabilities.storage.issue< &ExampleToken.Vault{ExampleToken.Receiver, ExampleToken.Balance} > (
16
+ let receiverCap = acct.capabilities.storage.issue< &ExampleToken.Vault> (
17
17
/ storage/ MainVault
18
18
)
19
19
acct.capabilities.publish (receiverCap, at : / public/ MainReceiver)
@@ -26,7 +26,7 @@ transaction {
26
26
assert (
27
27
getAccount (0x02 )
28
28
.capabilities
29
- .borrow< &ExampleToken.Vault{ExampleToken.Receiver} > (/ public/ MainReceiver) ! = nil ,
29
+ .borrow< &ExampleToken.Vault> (/ public/ MainReceiver) ! = nil ,
30
30
message: " Vault Receiver Reference was not created correctly"
31
31
)
32
32
}
You can’t perform that action at this time.
0 commit comments