Skip to content

Commit

Permalink
use block methods instead of private fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Oct 6, 2021
1 parent 444db7b commit c7fb0b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain-explorer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ impl Batch {
&block.parent_id().into(),
&block.id().into(),
block.chain_length().into(),
block.header.block_date().into(),
block.header().block_date().into(),
block.fragments(),
)?;

@@ -73,7 +73,7 @@ impl NeedsBootstrap {
let parent_id = block0.parent_id();
let block_id = block0.id();

mut_tx.add_block0(&parent_id.into(), &block_id.into(), block0.contents.iter())?;
mut_tx.add_block0(&parent_id.into(), &block_id.into(), block0.contents().iter())?;

mut_tx.commit()?;

0 comments on commit c7fb0b4

Please sign in to comment.