Skip to content

Commit

Permalink
update transaction comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Oct 25, 2024
1 parent 2e871cb commit 8814053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions cadence/transactions/bridge/nft/batch_bridge_nft_to_evm.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8814053

Please sign in to comment.