diff --git a/cadence/transactions/bridge/nft/batch_bridge_nft_to_any_evm_address.cdc b/cadence/transactions/bridge/nft/batch_bridge_nft_to_any_evm_address.cdc index bc806731..eadda816 100644 --- a/cadence/transactions/bridge/nft/batch_bridge_nft_to_any_evm_address.cdc +++ b/cadence/transactions/bridge/nft/batch_bridge_nft_to_any_evm_address.cdc @@ -102,12 +102,14 @@ transaction(nftIdentifier: String, ids: [UInt64], recipient: String) { ) } + // Iterate over requested IDs and bridge each NFT to the provided recipient in EVM for id in ids { // Withdraw the NFT & ensure it is the correct type let nft <-self.collection.withdraw(withdrawID: id) assert( nft.getType() == self.nftType, - message: "Bridged nft type mismatch - requested: ".concat(self.nftType.identifier).concat(", received: ").concat(nft.getType().identifier) + message: "Bridged nft type mismatch - requested: ".concat(self.nftType.identifier) + .concat(", received: ").concat(nft.getType().identifier) ) // Execute the bridge to EVM let recipientEVMAddress = EVM.addressFromString(recipient) diff --git a/cadence/transactions/bridge/nft/batch_bridge_nft_to_evm.cdc b/cadence/transactions/bridge/nft/batch_bridge_nft_to_evm.cdc index ca321cc9..a56ae2f5 100644 --- a/cadence/transactions/bridge/nft/batch_bridge_nft_to_evm.cdc +++ b/cadence/transactions/bridge/nft/batch_bridge_nft_to_evm.cdc @@ -101,12 +101,14 @@ transaction(nftIdentifier: String, ids: [UInt64]) { ) } + // Iterate over requested IDs and bridge each NFT to the signer's COA in EVM for id in ids { - // Withdraw the NFT & ensure it is the correct type + // Withdraw the NFT & ensure it's the correct type let nft <-self.collection.withdraw(withdrawID: id) assert( nft.getType() == self.nftType, - message: "Bridged nft type mismatch - requested: ".concat(self.nftType.identifier).concat(", received: ").concat(nft.getType().identifier) + message: "Bridged nft type mismatch - requested: ".concat(self.nftType.identifier) + .concat(", received: ").concat(nft.getType().identifier) ) // Execute the bridge to EVM for the current ID self.coa.depositNFT(