TransactionSEALED

^■╱◇&◇▓○~□░%□■*~█◆#▒*◆$□^~#~●○#■◇!~$?%$*^!??█%&~▫●○░$●*╳*░□#○*%╲

Transaction ID

Timestamp

Jun 24, 2025, 10:40:54 PM UTC
8mo ago

Block Height

117,506,041

Computation

0

Execution Fee

0.00001399 FLOW

Execution Error

Error Code: 1101

panic: Account already submitted to fast break with playerId: 15782

Error ContextLine 46
41            ?? panic("could not borrow a reference to the collection receiver")
42
43    }
44
45    execute {
46        let nft <- self.gameRef.play(
47            fastBreakGameID: self.fastBreakGameID,
48            topShots: self.topShotMomentIds
49        )
50        self.recipient.deposit(token: <- (nft as @{NonFungibleToken.NFT}))
51    }
Call Stack
Raw Error

[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> 1b0ad45da16e537c0f115151d10e55561ddba729b7e85fca1832c73f830d0689:46:19 | 46 | let nft <- self.gameRef.play( 47 | fastBreakGameID: self.fastBreakGameID, 48 | topShots: self.topShotMomentIds 49 | ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: panic: Account already submitted to fast break with playerId: 15782 --> 0b2a3299cc857e29.FastBreakV1:445:16 Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.

Transaction Summary

Contract Call

Called NonFungibleToken, FastBreakV1

Script Arguments

Copy:

Cadence Script

Open in Playground
1import NonFungibleToken from 0x1d7e57aa55817448
2import FastBreakV1 from 0x0b2a3299cc857e29
3
4transaction() {
5
6    let gameRef: auth(FastBreakV1.Play) &FastBreakV1.Player
7    let recipient: &{FastBreakV1.FastBreakNFTCollectionPublic}
8    let playerName: String
9    let fastBreakGameID: String
10    let topShotMomentIds: [UInt64]
11
12
13    prepare(acct: auth(Storage, Capabilities) &Account) {
14
15        self.playerName = "experienced_sw"
16        self.fastBreakGameID = "caa5e922-5a97-44d2-be58-515b0d97f9ca"
17        self.topShotMomentIds = [46935007]
18
19        if acct.storage.borrow<&FastBreakV1.Collection>(from: FastBreakV1.CollectionStoragePath) == nil {
20
21            let collection <- FastBreakV1.createEmptyCollection(nftType: Type<@FastBreakV1.NFT>())
22            acct.storage.save(<-collection, to: FastBreakV1.CollectionStoragePath)
23            acct.capabilities.publish(
24                acct.capabilities.storage.issue<&FastBreakV1.Collection>(FastBreakV1.CollectionStoragePath),
25                at: FastBreakV1.CollectionPublicPath
26            )
27
28        }
29
30        if acct.storage.borrow<auth(FastBreakV1.Play) &FastBreakV1.Player>(from: FastBreakV1.PlayerStoragePath) == nil {
31
32            let player <- FastBreakV1.createPlayer(playerName: self.playerName)
33            acct.storage.save(<-player, to: FastBreakV1.PlayerStoragePath)
34        }
35
36        self.gameRef = acct.storage.borrow<auth(FastBreakV1.Play) &FastBreakV1.Player>(from: FastBreakV1.PlayerStoragePath)
37            ?? panic("could not copy a reference to the accounts player")
38
39
40        self.recipient = acct.capabilities.borrow<&{FastBreakV1.FastBreakNFTCollectionPublic}>(FastBreakV1.CollectionPublicPath)
41            ?? panic("could not borrow a reference to the collection receiver")
42
43    }
44
45    execute {
46        let nft <- self.gameRef.play(
47            fastBreakGameID: self.fastBreakGameID,
48            topShots: self.topShotMomentIds
49        )
50        self.recipient.deposit(token: <- (nft as @{NonFungibleToken.NFT}))
51    }
52}