Skip to content

Commit

Permalink
eips: update fn encoded_2718 (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg authored Oct 18, 2024
1 parent 25d6a80 commit f3de42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eips/src/eip2718.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ pub trait Encodable2718: Sized + Send + Sync + 'static {
/// This is a convenience method for encoding into a vec, and returning the
/// vec.
fn encoded_2718(&self) -> Vec<u8> {
let mut out = vec![];
let mut out = Vec::with_capacity(self.encode_2718_len());
self.encode_2718(&mut out);
out
}
Expand Down

0 comments on commit f3de42e

Please sign in to comment.