-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat(rpc): add rundler_getMinedUserOperation #1045
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
73d64b9
to
147982e
Compare
147982e
to
cc2d109
Compare
(Some(uo), Some(mut receipt)) => { | ||
// clear out the outer transaction logs from the receipt to avoid sending | ||
// extra data in the response. OOF - this type is a mess. | ||
receipt.receipt.inner.inner.receipt.logs.clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is wild haha
@@ -91,24 +104,40 @@ where | |||
) | |||
.await | |||
} | |||
|
|||
async fn get_mined_user_operation( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to add tracing to this request?
tx_receipt: &'a TransactionReceipt, | ||
) -> Option<&'a Log> { | ||
tx_receipt.inner.logs().iter().find(|l| { | ||
l.topics()[0] == E::UserOperationEvent::SIGNATURE_HASH && l.topics()[1] == uo_hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if passed an incorrect tx receipt will this return an index out of bounds?
Closes #1044
Proposed Changes
rundler_getMinedUserOperation