solmate icon indicating copy to clipboard operation
solmate copied to clipboard

safeTransferFrom fails on a transfer to a BeaconProxy, but works with OZ's safeTransferFrom

Open 0xTimepunk opened this issue 2 years ago • 1 comments

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.

0xTimepunk avatar Apr 14 '23 16:04 0xTimepunk

submit a reproduction repo plz, this is likely an issue with your setup

androolloyd avatar Apr 17 '23 21:04 androolloyd