Closed tcoratger closed 4 weeks ago
I don't see the point of this function, after changing &[&T]
to &[T]
because that collect is unnecessary, it becomes essentially receipts.map(f)
, which doesn't need to be a method
I don't see the point of this function, after changing
&[&T]
to&[T]
because that collect is unnecessary, it becomes essentiallyreceipts.map(f)
, which doesn't need to be a method
@DaniPopes Yes fair point. I think it requires changing some function definitions in reth but I think it can only be beneficial. Here is what I propose:
Receipts
) https://github.com/paradigmxyz/reth/pull/12059/root_slow
function as you propose here.What do you think?
agree with @DaniPopes , this only makes sense if this type is the l1 type, and it implements a new trait ReceiptsRoot
, which should then also be implemented on a similar op-alloy
type OpReceipts
@emhane https://github.com/paradigmxyz/reth/pull/12059 is ready for review, if everything is fine and merged then we can delete the function here in alloy :)
@DaniPopes @emhane Given the path taken by https://github.com/paradigmxyz/reth/pull/12162, just removed this unused method
Follow up on https://github.com/alloy-rs/alloy/pull/1563: