TransactionSEALED
╱^▪#○^*▓◆!╱▓○#■╱&□#@◇○╲@◆░▓◆▓◇&░░?@○█▒$●╲&~□╱!◆░▒▪*~╱○?╳▒◆╲!^░◆*
Transaction ID
Execution Fee
0.00012296 FLOWTransaction Summary
Contract CallCalled ConcreteBlockPoetry, ConcreteBlockPoetryBIP39
Script Arguments
Cadence Script
1import ConcreteBlockPoetry from 0x23b08a725bc2533d
2import ConcreteBlockPoetryBIP39 from 0x23b08a725bc2533d
3
4transaction {
5 prepare(signer: auth(BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue, UnpublishCapability) &Account) {
6 if signer.storage.borrow<&ConcreteBlockPoetry.PoetryCollection>(from: /storage/PoetryCollectionVol1) == nil {
7 signer.storage.save(<- ConcreteBlockPoetry.createEmptyPoetryCollection(), to: /storage/PoetryCollectionVol1)
8 let cap = signer.capabilities.storage.issue<&ConcreteBlockPoetry.PoetryCollection>(/storage/PoetryCollectionVol1)
9 signer.capabilities.publish(cap, at: /public/PoetryCollectionVol1)
10 }
11 let poetryCollectionRef = signer.storage.borrow<auth(ConcreteBlockPoetry.WritePoem) &ConcreteBlockPoetry.PoetryCollection>(from: /storage/PoetryCollectionVol1)!
12 poetryCollectionRef.writePoem(poetryLogic: ConcreteBlockPoetry.PoetryLogic())
13
14 if signer.storage.borrow<&ConcreteBlockPoetryBIP39.PoetryCollection>(from: /storage/PoetryCollectionBIP39Vol1) == nil {
15 signer.storage.save(<- ConcreteBlockPoetryBIP39.createEmptyPoetryCollection(), to: /storage/PoetryCollectionBIP39Vol1)
16 let cap = signer.capabilities.storage.issue<&ConcreteBlockPoetryBIP39.PoetryCollection>(/storage/PoetryCollectionBIP39Vol1)
17 signer.capabilities.publish(cap, at: /public/PoetryCollectionBIP39Vol1)
18 }
19 let poetryCollectionBIP39Ref = signer.storage.borrow<auth(ConcreteBlockPoetryBIP39.WritePoem) &ConcreteBlockPoetryBIP39.PoetryCollection>(from: /storage/PoetryCollectionBIP39Vol1)!
20 poetryCollectionBIP39Ref.writePoems(poetryLogic: ConcreteBlockPoetryBIP39.PoetryLogic())
21 }
22}