From c7fb0b448d2b81008c2dca50aca2f05898b44ab7 Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Wed, 6 Oct 2021 12:04:49 -0300 Subject: [PATCH] use block methods instead of private fields --- chain-explorer/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain-explorer/src/lib.rs b/chain-explorer/src/lib.rs index 60d6bda3a..e81fb12df 100644 --- a/chain-explorer/src/lib.rs +++ b/chain-explorer/src/lib.rs @@ -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()?;