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: too few arguments
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:50:25
|
50 | let usdcVault <- USDCFlow.createEmptyVault()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:51:8
|
51 | newAccount.save(<-usdcVault, to: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:53:8
|
53 | newAccount.link<&{FungibleToken.Receiver}>(USDCFlow.VaultReceiverPubPath, target: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^ not found in this scope
error: value of type `&USDCFlow` has no member `VaultReceiverPubPath`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:53:60
|
53 | newAccount.link<&{FungibleToken.Receiver}>(USDCFlow.VaultReceiverPubPath, target: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^^^^^^^^^^^ unknown member
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:54:8
|
54 | newAccount.link<&{FungibleToken.Balance}>(USDCFlow.VaultBalancePubPath, target: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^ not found in this scope
error: value of type `&USDCFlow` has no member `VaultBalancePubPath`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:54:59
|
54 | newAccount.link<&{FungibleToken.Balance}>(USDCFlow.VaultBalancePubPath, target: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^^^^^^^^^^ unknown member
error: too few arguments
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:57:27
|
57 | let stFlowVault <- stFlowToken.createEmptyVault()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:58:8
|
58 | newAccount.save(<-vault, to: stFlowToken.tokenVaultPath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `vault`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:58:26
|
58 | newAccount.save(<-vault, to: stFlowToken.tokenVaultPath)
| ^^^^^ not found in this scope
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:59:8
|
59 | newAccount.link<&{FungibleToken.Receiver}>(stFlowToken.tokenReceiverPath, target: stFlowToken.tokenVaultPath)
| ^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `newAccount`
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:60:8
|
60 | newAccount.link<&{FungibleToken.Balance}>(stFlowToken.tokenBalancePath, target: stFlowToken.tokenVaultPath)
| ^^^^^^^^^^ not found in this scope
error: loss of resource
--> 8f1f575cc2f798a9a89a5b4ddc4295fbaaf0344974ea88413a1711503f8d206c:57:12
|
57 | let stFlowVault <- stFlowToken.createEmptyVault()
| ^^^^^^^^^^^