Skip to content

Commit

Permalink
fix failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Oct 29, 2024
1 parent 369ec90 commit 1dd624c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cadence/transactions/bridge/nft/batch_bridge_nft_from_evm.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ transaction(nftIdentifier: String, ids: [UInt256]) {
// Borrow a reference to the NFT collection, configuring if necessary
let viewResolver = getAccount(nftContractAddress).contracts.borrow<&{ViewResolver}>(name: nftContractName)
?? panic("Could not borrow ViewResolver from NFT contract with name "
.concat(contractName).concat(" and address ")
.concat(contractAddress.toString())
.concat(nftContractName).concat(" and address ")
.concat(nftContractAddress.toString()))
let collectionData = viewResolver.resolveContractView(
resourceType: self.nftType,
viewType: Type<MetadataViews.NFTCollectionData>()
Expand All @@ -62,7 +62,7 @@ transaction(nftIdentifier: String, ids: [UInt256]) {
signer.capabilities.publish(collectionCap, at: collectionData.publicPath)
}
self.collection = signer.storage.borrow<&{NonFungibleToken.Collection}>(from: collectionData.storagePath)
?? panic("Could not borrow a NonFungibleToken Collection from the signer's storage path ")
?? panic("Could not borrow a NonFungibleToken Collection from the signer's storage path "
.concat(collectionData.storagePath.toString()))

/* --- Configure a ScopedFTProvider --- */
Expand Down

0 comments on commit 1dd624c

Please sign in to comment.