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 15, 2021
1 parent 003ce1a commit c2bc2ef
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
Expand Up @@ -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(),
)?;

Expand All @@ -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()?;

Expand Down

0 comments on commit c2bc2ef

Please sign in to comment.