When transfer from to L1 to L2, the NFT may loss.
The users provided ownerL2
type: type snaddress is uint256
. However, this may create an issue because the account primitive type in Cairo is the felt
within the range 0 < x < P
, which P = 2^251 + 17 * 2^192 + 1
which less than 2**256
.
So the users provided ownerL2
may greater than felt
, but the ownerL2
may convert to an unexpected account in starknet.
The NFT may loss when transfer from L1 to L2.
vscode, Manual Review
Add check ownerL2
should less than P
when calling the depositTokens
function.
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.