-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(rpc): make TransactionCompat::fill
stateful
#11732
Conversation
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.
needs to instead implement TransactionCompat
on the OpEthApi
, so that we can fetch the receipt in the fill
impl
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.
just one comment, otherwise this looks good to me
let deposit_receipt_version = self | ||
.inner | ||
.provider() | ||
.receipt_by_hash(hash) | ||
.ok() // todo: change sig to return result | ||
.flatten() | ||
.and_then(|receipt| receipt.deposit_receipt_version); |
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.
let's do the todo here, maybe the error can be an associated type?
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.
it's quite a big change, effects signature of more rpc compat signatures, suggest it's done in a separate pr
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.
alright, let's make an issue to track
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.
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.
lgtm
Ref #11708
Closes #11164
Makes
TransactionCompat::fill
take ref to self, to be able to add necessary data toOpTxBuilder
to resolve the deposit receipt version for a transaction response