Flow price: --
2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a

Transaction

Hash: 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a
error
Error

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 restrict using non-resource/structure/contract interface type: `FlowToken.Vault`
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:22:55
   |
22 |             self.vaultRef = acct.capabilities.borrow<&{FlowToken.Vault}>(/storage/flowTokenVault) ?? panic("Cannot borrow FlowToken vault from acct storage")
   |                                                        ^^^^^^^^^^^^^^^

error: ambiguous intersection type
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:22:54
   |
22 |             self.vaultRef = acct.capabilities.borrow<&{FlowToken.Vault}>(/storage/flowTokenVault) ?? panic("Cannot borrow FlowToken vault from acct storage")
   |                                                       ^^^^^^^^^^^^^^^^^

error: mismatched types
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:22:73
   |
22 |             self.vaultRef = acct.capabilities.borrow<&{FlowToken.Vault}>(/storage/flowTokenVault) ?? panic("Cannot borrow FlowToken vault from acct storage")
   |                                                                          ^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`

error: cannot infer type parameter: `T`
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:22:28
   |
22 |             self.vaultRef = acct.capabilities.borrow<&{FlowToken.Vault}>(/storage/flowTokenVault) ?? panic("Cannot borrow FlowToken vault from acct storage")
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: mismatched types
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:39:55
   |
39 |       if acct.capabilities.borrow<&Ordinal.Collection>(Ordinal.CollectionStoragePath) == nil {
   |                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`

error: cannot access `withdraw`: function requires `Withdraw` authorization, but reference is unauthorized
  --> 2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a:53:26
   |
53 |       let paymentVault <- self.vaultRef!.withdraw(amount: price)
   |                           ^^^^^^^^^^^^^^^^^^^^^^^


Hash:
2fbec962f212080fcb4417303fbcaf2e7dc13beaf43e4a792d633d88b068535a
Status:
ERROR
Block height:
6664587
Block id:
c4dcbcfaad5db1e202bbefb26cf86a2b5cde2a99b367b6059232179789b1514e
Timestamp:
Monday 15 April 2024 at 00:09:21 UTC
()
Proposer:
Authorizers:
Gas used:
0