Skip to content

Commit

Permalink
revert breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Sep 7, 2023
1 parent 97d696a commit 00e2d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/types/block/output/feature/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ impl MetadataFeature {

/// Creates a new [`MetadataFeature`].
#[inline(always)]
pub fn new<T: TryInto<Self>>(data: T) -> Result<Self, T::Error> {
data.try_into()
pub fn new(data: impl Into<Vec<u8>>) -> Result<Self, Error> {
Self::try_from(data.into())
}

/// Returns the data.
Expand Down

0 comments on commit 00e2d45

Please sign in to comment.