diff --git a/src/views.rs b/src/views.rs index 999187445..6c616774d 100644 --- a/src/views.rs +++ b/src/views.rs @@ -95,12 +95,12 @@ impl<'a> BlockView<'a> { pub fn header_view(&self) -> HeaderView<'a> { HeaderView::new_from_rlp(self.rlp.at(0)) } -/* + /// Return List of transactions in given block. - pub fn transactions(&self) -> Vec { + pub fn transaction_views(&self) -> Vec { self.rlp.at(1).iter().map(|rlp| TransactionView::new_from_rlp(rlp)).collect() } -*/ + /// Return List of transactions in given block. pub fn transactions(&self) -> Vec { self.rlp.val_at(1)