You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(l1): omit copying bytes when encoding transactions (#5137)
**Motivation**
When encoding non-legacy transactions we need to encode the payload
(txType || rlp(Transaction) as a bytes object. In order to do so we copy
the payload to a `Bytes` object and then encode it in rlp, this is not
needed as we can just encode the payload as bytes by invoking the
implementation for [u8] directly
**Description**
* Avoid using `Bytes::copy_from_slice` when encoding transactions
<!-- A clear and concise general description of the changes this PR
introduces -->
<!-- Link to issues: Resolves#111, Resolves#222 -->
0 commit comments