Skip to content

Commit

Permalink
fix argument list for from_array (#1384)
Browse files Browse the repository at this point in the history
### What

Simple fix up from for the previous BLS change.

### Why

[TODO: Why this change is being made. Include any context required to
understand the why.]

### Known limitations

[TODO or N/A]
  • Loading branch information
jayz22 authored Oct 24, 2024
1 parent 433ce5c commit 44ed570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soroban-sdk/src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ macro_rules! impl_bytesn_repr {
self.0.to_array()
}

pub fn from_array(&self, env: &Env, array: &[u8; $size]) -> Self {
pub fn from_array(env: &Env, array: &[u8; $size]) -> Self {
Self(<BytesN<$size>>::from_array(env, array))
}

Expand Down

0 comments on commit 44ed570

Please sign in to comment.