Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
chcmedeiros committed Jan 14, 2025
1 parent d1bcd1f commit 1699f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/rust/src/parser/chain_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<'b> FromBytes<'b> for ChainId<'b> {
//good ptr and no uninit reads
let out = out.as_mut_ptr();
unsafe {
addr_of_mut!((*out).0).write(&chain_id);
addr_of_mut!((*out).0).write(chain_id);
}

Ok(rem)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<'b> DisplayableItem for RegisterL1ValidatorTx<'b> {
out[..prefix.len()].copy_from_slice(&prefix[..]);

sz += hex_encode(
self.disable_owner.addresses[x as usize - 5 - n_remain_addresses as usize],
self.disable_owner.addresses[x as usize - 5 - n_remain_addresses],
&mut out[prefix.len()..],
)
.map_err(|_| ViewError::Unknown)?;
Expand Down

0 comments on commit 1699f40

Please sign in to comment.