From cbdc2ec80db86fe9648db82a8fc42e5d06e5eecd Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 16 Jan 2016 21:04:14 +0100 Subject: [PATCH] Enable TransactionViews from the BlockView. --- src/views.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)