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