Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Nov 25, 2024
1 parent 52c530d commit 945d69c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ impl Method<Starknet> for MembersRevisionRequest {
fn encode(self) -> eyre::Result<Vec<u8>> {
// Split context_id into high/low parts
let bytes = self.context_id.as_bytes();
let mid_point = bytes.len().checked_div(2).ok_or_else(|| eyre::eyre!("Length should be even"))?;
let mid_point = bytes
.len()
.checked_div(2)
.ok_or_else(|| eyre::eyre!("Length should be even"))?;
let (high_bytes, low_bytes) = bytes.split_at(mid_point);

// Convert to Felts
Expand Down

0 comments on commit 945d69c

Please sign in to comment.