[Error Code: 1101] error caused by: 1 error occurred: * transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:29:60 | 29 | if receiver.storage.borrow<&KRTPREVIEW.Vault>(from: vaultData.storagePath) == nil { | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:33:38 | 33 | receiver.storage.save(<-vault, to: vaultData.storagePath) | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:37:4 | 37 | vaultData.storagePath | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:39:47 | 39 | receiver.capabilities.publish(vaultCap, at: vaultData.metadataPath) | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:43:4 | 43 | vaultData.storagePath | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:45:50 | 45 | receiver.capabilities.publish(receiverCap, at: vaultData.receiverPath) | ^^^^^^^^^ not found in this scope error: cannot access `unpublish`: function requires `Capabilities | UnpublishCapability` authorization, but reference only has `BorrowValue, IssueStorageCapabilityController, PublishCapability, SaveValue` authorization --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:60:3 | 60 | receiver.capabilities.unpublish(collectionData.publicPath) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `vaultData` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:68:99 | 68 | self.tokenReceiver = getAccount(receiver.address).capabilities.borrow<&{FungibleToken.Receiver}>(vaultData.receiverPath) | ^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `i` --> 0af533430cb77f85d4af86f74f848f9f298ab18ed123f2c0e26ecb64996b1e4e:81:157 | 81 | let metadata=KARAT2QMAWWSBT.Metadata(name: name, artist: artist, artistAddress: artistAddress, description: description, type: typeID, serialId: i, royalty: royalty) | ^ not found in this scope
Happy diving into the flow Remember to upgrade your contracts to 1.0!