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
--> f4fb9490366e08f837eb4669b7dcb2aa7b8b2ba5aee9015281014c2b55e3af3b:22:100
|
22 | self.vaultRef = acct.capabilities.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(/storage/flowTokenVault) ?? panic("Cannot borrow FlowToken vault from acct storage")
| ^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`
error: mismatched types
--> f4fb9490366e08f837eb4669b7dcb2aa7b8b2ba5aee9015281014c2b55e3af3b:39:55
|
39 | if acct.capabilities.borrow<&Ordinal.Collection>(Ordinal.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`