KittyBridge.sol::bridgeNftWithData()
will revert since no approval is being granted to the router for the fees transfer.
Bridging NFTs incurs a cost, payable in LINK or alternative assets. Since LINK is an ERC-20 token, it necessitates prior approval for transfer by an external party on behalf of the contract.
Tokens cannot be bridged since a call to the function will trigger the error: ERC20: transfer amount exceeds allowance
. Since the fees token address is hardcoded there is no way to circumvent this issue.
Add the following to the current test suite:
Manual review
Add the following to the function KittyBridge.sol::bridgeNftWithData
:
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.