chore: fix linter

This commit is contained in:
erhant 2026-06-26 16:41:39 +03:00
parent 8a719c289d
commit 251919c4e7
3 changed files with 5 additions and 4 deletions

View File

@ -420,7 +420,7 @@ mod tests {
// Blocks 2..=11: one native transfer of 10 each (nonces 0..=9).
for i in 0..10_u64 {
let tx = create_transaction_native_token_transfer(from, i as u128, to, 10, &sign_key);
let tx = create_transaction_native_token_transfer(from, i.into(), to, 10, &sign_key);
let block = produce_dummy_block(i + 2, Some(prev_hash), vec![tx]);
prev_hash = block.header.hash;
assert!(matches!(
@ -463,7 +463,7 @@ mod tests {
.unwrap();
for i in 0..10_u64 {
let tx = create_transaction_native_token_transfer(from, i as u128, to, 10, &sign_key);
let tx = create_transaction_native_token_transfer(from, i.into(), to, 10, &sign_key);
let block = produce_dummy_block(i + 2, Some(prev_hash), vec![tx]);
prev_hash = block.header.hash;
store

View File

@ -118,7 +118,7 @@ impl IndexerCore {
ZoneMessage::Deposit(_) | ZoneMessage::Withdraw(_) => continue,
};
let l1_slot = serde_json::to_value(&slot).unwrap_or(serde_json::Value::Null);
let l1_slot = serde_json::to_value(slot).unwrap_or(serde_json::Value::Null);
let block: Block = match borsh::from_slice(&zone_block.data) {
Ok(b) => b,

View File

@ -19,6 +19,7 @@ pub struct StallReason {
pub first_seen: Option<u64>,
/// Number of later non-chaining blocks (orphans, since the tip is frozen).
///
/// TODO: We could store a different "branch" of blocks following this sta
/// TODO: We could store a different "branch" of blocks following this break, but for now we
/// just count them.
pub orphans_since: u64,
}