Skip to content

Commit

Permalink
fmt: sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 14, 2024
1 parent cd105ea commit bc7e629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions bolt-sidecar/src/builder/payload_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,9 @@ mod tests {
let raw_encoded = tx_signed.encoded_2718();
let tx_signed_reth = TransactionSigned::decode_enveloped(&mut raw_encoded.as_slice())?;

let slot = genesis_time
+ (SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs() / cfg.chain.slot_time())
+ 1;
let slot = genesis_time +
(SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs() / cfg.chain.slot_time()) +
1;

let block = builder.build_fallback_payload(slot, &[tx_signed_reth]).await?;
assert_eq!(block.body.len(), 1);
Expand Down
4 changes: 2 additions & 2 deletions bolt-sidecar/src/signer/keystore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ mod tests {
)
.expect("to create temp dir");

// NOTE: it is sufficient to create a temp dir, then we can create a file as usual and it
// will be dropped correctly
// NOTE: it is sufficient to create a temp dir, then we can create a file as usual and
// it will be dropped correctly
let mut tmp_file = File::create_new(tmp_dir.path().join("voting-keystore.json"))
.expect("to create new file");

Expand Down

0 comments on commit bc7e629

Please sign in to comment.