Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Draggu committed Apr 3, 2024
1 parent edf0127 commit 7403d59
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/conversions/src/felt252.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ pub trait SerializeAsFelt252Vec: Sized {
}

impl SerializeAsFelt252Vec for Vec<Felt252> {
fn serialize_as_felt252_vec(&self) -> Vec<Felt252> {
self.to_owned()
fn serialize_as_felt252(self, output: &mut Vec<Felt252>) {
output.extend(self);
}

fn serialize_as_felt252_vec(self) -> Vec<Felt252> {
self
}
}

Expand Down

0 comments on commit 7403d59

Please sign in to comment.