solmate
solmate copied to clipboard
safeTransferFrom fails on a transfer to a BeaconProxy, but works with OZ's safeTransferFrom
As the title implies, a safeTransferFrom using solmate's ERC20 & SafeTransferLib fails when transferring any amount to a OpenZeppelin BeaconProxy contract (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/beacon/BeaconProxy.sol)
Using OpenZeppelins' safeTransfer library, together with their ERC20, works for the exact same call and amount.
To reproduce, just deploy a BeaconProxy attached to an implementation contract and run a safeTransferFrom in the contract.
submit a reproduction repo plz, this is likely an issue with your setup