Skip to content

Commit

Permalink
refac: update withdraw function to clear mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
od-hunter committed Sep 30, 2024
1 parent 09ae423 commit e18ac58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/blockchain/starknet/src/bridge.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ mod bridge {
if is_escrowed {
IERC721Dispatcher { contract_address: collection_l2 }
.transfer_from(from, to, token_id);

let null_value = starknet::contract_address_const::<0>();
self.escrow.write((collection_l2, token_id), null_value);
} else {
if (req.uris.len() != 0) {
let token_uri = req.uris[i];
Expand Down

0 comments on commit e18ac58

Please sign in to comment.