Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using solady safeTransferLib #2

Merged
merged 3 commits into from
May 3, 2023
Merged

using solady safeTransferLib #2

merged 3 commits into from
May 3, 2023

Conversation

leekt
Copy link
Contributor

@leekt leekt commented Apr 25, 2023

As addressed in audit report, enabling any token with same code base will be easier for us to maintain the project.
thus using safeTransfer, using modified version of solady's SafeTransferLib
*modified because Entrypoint reverts on short errors

@leekt
Copy link
Contributor Author

leekt commented Apr 25, 2023

found weird behavior on entrypoint with this fixes, entrypoint cannot handle revert with less than 32 bytes : https://github.com/eth-infinitism/account-abstraction/blob/abff2aca61a8f0934e533d0d352978055fddbd96/contracts/core/EntryPoint.sol#L69

@drortirosh
Copy link

indeed it is a strange behaviour... hardhat reverts on returndatacopy if there is no return data, but geth silently returns..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants