withdrawToken function of L2AssetRouter calls _ensureTokenRegisteredWithNTV to receive registered assetId, but it always return zero because of incorrect implementation, which makes the transaction revert always.
The _ensureTokenRegisteredWithNTV is supposed to check if a token is registered with NTV and return assetId at the end so it can be used in withdrawToken function.
However, it does not assign any value to assetId which returns zero.
withdrawToken does not work.
Manual Review
_ensureTokenRegisteredWithNTV function should return registered assetId after validation.
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.