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: mismatched types
--> 3d4351727fb27f4baaa634de2e23ffbb72ab5e40c41ffb2e8ac8637c2e6b0de7:51:10
|
51 | acct.storage.borrow<auth(FungibleToken.Withdraw) &USDCFlow.Vault>(from: USDCFlow.VaultStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `auth(FungibleToken.Withdraw) &USDCFlow.Vault`, got `auth(FungibleToken.Withdraw) &USDCFlow.Vault?`
error: mismatched types
--> 3d4351727fb27f4baaa634de2e23ffbb72ab5e40c41ffb2e8ac8637c2e6b0de7:56:44
|
56 | let usdcTarget: &USDCFlow.Vault = targetAccount.capabilities.get<&USDCFlow.Vault>(USDCFlow.ReceiverPublicPath)
57 | .borrow()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&USDCFlow.Vault`, got `&USDCFlow.Vault?`