Conversation
|
| // When a deposit is initiated on L1, the L1 Bridge transfers the funds to itself for future | ||
| // withdrawals. safeTransferFrom also checks if the contract has code, so this will fail if | ||
| // _from is an EOA or address(0). | ||
| // _l1Token is an EOA or address(0). |
There was a problem hiding this comment.
I'm power sure that safeTransferFrom dies this check on the recipient. In this case that's this contract, so I'm not sure why used it.
There was a problem hiding this comment.
Actually no, it handles broken tokens: https://docs.openzeppelin.com/contracts/2.x/api/token/ERC20
|
@maurelian thank you! Which checks if the called address has code require(isContract(target), "Address: call to non-contract");And the called address is But your fix is fine with me. |
|
Thanks, and definitely appreciate the help! :) |
## Description This PR fixes kurtosis jobs in CI
Description
safeTransferFrom checks if the token contract has code, not a from address. So this looks like a typo.
Additional context
Metadata