-
Notifications
You must be signed in to change notification settings - Fork 10
fix: impl Tx for the recently introduced blob sidecar enum variant #137
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
Conversation
src/fill/alloy.rs
Outdated
| impl Tx for Recovered<&EthereumTxEnvelope<TxEip4844WithSidecar<BlobTransactionSidecarVariant>>> { | ||
| fn fill_tx_env(&self, tx_env: &mut TxEnv) { | ||
| match self.inner() { | ||
| EthereumTxEnvelope::Legacy(t) => { | ||
| Recovered::new_unchecked(t, self.signer()).fill_tx_env(tx_env) | ||
| } | ||
| EthereumTxEnvelope::Eip2930(t) => { | ||
| Recovered::new_unchecked(t, self.signer()).fill_tx_env(tx_env) | ||
| } | ||
| EthereumTxEnvelope::Eip1559(t) => { | ||
| Recovered::new_unchecked(t, self.signer()).fill_tx_env(tx_env) | ||
| } | ||
| EthereumTxEnvelope::Eip4844(t) => { | ||
| Recovered::new_unchecked(t, self.signer()).fill_tx_env(tx_env) | ||
| } | ||
| EthereumTxEnvelope::Eip7702(t) => { | ||
| Recovered::new_unchecked(t, self.signer()).fill_tx_env(tx_env) | ||
| } | ||
| } | ||
| } | ||
| } |
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.
this is also something that can be made generic, should i?
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.
i'm on the fence about making these generic, as there's currently no trait bound to limit the typevar to something that's valid in context afaik
I suppose it won't cause any issues to go more generic, and it does DRY the code. let's make this generic as well
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 with generics because of missing trait bound as you point out. but i added a macro instead.
|
thank you! alloy introduced a breaking change in as a workaround, in your project you can downgrade all alloy packages to |
prestwich
left a comment
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.
ty, looking good
|
this will be released in trevm@0.31.4 shortly |
There were compile errors when i tried to use this library.