Closed d4mr closed 1 month ago
@arcoraven should we try-catch-rethrow an easier to understand error?
This will populate the transaction even on resends. The resend doesn't use it though, so while correct it's just an unneeded call. Maybe it's cleaner to just have a helper func getPopulatedTransaction()
and call it from both _sendUserOp()
and _sendTransaction()
instead?
PR-Codex overview
The focus of this PR is to refactor transaction handling logic by introducing a new function
getPopulatedOrErroredTransaction
.Detailed summary
toSerializableTransaction
importgenerateSignedUserOperation
getPopulatedOrErroredTransaction
to handle transaction validation and population