escrow
mapping is not set to 0 after NFT transfer in withdraw_auto_from_l1()
after NFT transfer in bridge.cairo
The escrow
mapping in bridge.cairo
tracks whether an NFT is escrowed in the bridge contract is not. However, this mapping is not set to zero when the NFT is transferred out of the contract in withdraw_auto_from_l1()
. This may cause confusion as the escrow
mapping will be active even though the contract doesn't hold the particular NFT. In rare cases, it may also cause a revert.
Low
Manual Review
Set escrow
mapping to 0 after NFT transfer.
Impact: Incorrect state without any other impact, which deserves a Low according to CodeHawks documentation.
Impact: Incorrect state without any other impact, which deserves a Low according to CodeHawks documentation.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.