Flow price: --
d093cb3c4dc1776f14b9311fffe2d990d85b5e877b68f71fcbe14add491c3a78

Transaction

Hash: d093cb3c4dc1776f14b9311fffe2d990d85b5e877b68f71fcbe14add491c3a78
error
Error

Whoops! 😨 Something unexpected happened...

[Error Code: 1101] error caused by: 1 error occurred:
	* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot deploy invalid contract
 --> d093cb3c4dc1776f14b9311fffe2d990d85b5e877b68f71fcbe14add491c3a78:3:2
  |
3 | 		signer.contracts.update(name: name, code: code.decodeHex())
  | 		^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: mismatched types
    --> 577a3c409c5dcb5e.Toucans:1330:16
     |
1330 |         return &nftTreasury[type] as auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}?
     |                 ^^^^^^^^^^^^^^^^^ expected `{NonFungibleToken.Collection}?`, got `&{NonFungibleToken.Collection}?`

error: cannot create a nested reference to value of type &{NonFungibleToken.Collection}
    --> 577a3c409c5dcb5e.Toucans:1330:15
     |
1330 |         return &nftTreasury[type] as auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Collection}?
     |                ^^^^^^^^^^^^^^^^^^


Loading...
0

Loading...

1

Loading...