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 declaration `FungibleToken` in `9a0766d93b6608b7.FungibleToken`
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:1:7
|
1 | import FungibleToken from 0x9a0766d93b6608b7
| ^^^^^^^^^^^^^ available exported declarations are:
error: cannot find declaration `FlowToken` in `7e60df042a9c0868.FlowToken`
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:2:7
|
2 | import FlowToken from 0x7e60df042a9c0868
| ^^^^^^^^^ available exported declarations are:
error: ambiguous intersection type
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:7:20
|
7 | let sentVault: @{FungibleToken.Vault}
| ^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:12:23
|
12 | let vaultRef = signer.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: ambiguous intersection type
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:23:34
|
23 | .capabilities.borrow<&{FungibleToken.Receiver}>(/public/flowTokenReceiver)
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 6e3a0bc0f8eaead1ff615ab09ae0ce329b3a181c99c963906350d749ad80099b:22:27
|
22 | let receiverRef = getAccount(to)
23 | .capabilities.borrow<&{FungibleToken.Receiver}>(/public/flowTokenReceiver)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^