Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot find type in this scope: `AuthAccount`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:11:16
|
11 | prepare(acct: AuthAccount, payerAcct: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `AuthAccount`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:11:40
|
11 | prepare(acct: AuthAccount, payerAcct: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: too few arguments
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:17:19
|
17 | acct.save(<- FraggleRock.createEmptyCollection(), to: FraggleRock.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: value of type `&Account` has no member `storageUsed`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:26:22
|
26 | if (updtRecipient.storageUsed > updtRecipient.storageCapacity) {
| ^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `storageCapacity`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:26:50
|
26 | if (updtRecipient.storageUsed > updtRecipient.storageCapacity) {
| ^^^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `storageUsed`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:29:45
|
29 | let storageUsed = UFix64(updtRecipient.storageUsed)
| ^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `storageCapacity`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:30:49
|
30 | let storageCapacity = UFix64(updtRecipient.storageCapacity)
| ^^^^^^^^^^^^^^^ unknown member
error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:33:23
|
33 | let sentVault <- self.vault.withdraw(amount: flowAmount)
| ^^^^^^^^^^^^^^^^^^^
error: value of type `&Account` has no member `getCapability`
--> f1e4e4882be3807f54733a07413b588f9a27c9c28d0fb1d848d2c06b9382fa14:34:52
|
34 | let updtRecipientFlowReceiver = updtRecipient.getCapability(/public/flowTokenReceiver).borrow<&{FungibleToken.Receiver}>()?? panic("failed to borrow reference to updtRecipient vault")
| ^^^^^^^^^^^^^ unknown member