Skip to content

Commit

Permalink
fix(store): panic on get_mem_pool_withdrawal_iter (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroqn authored May 17, 2022
1 parent 8afaaa6 commit 5e66b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/store/src/transaction/store_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,10 @@ impl StoreTransaction {
) -> impl Iterator<Item = (H256, packed::WithdrawalRequestExtra)> + '_ {
self.get_iter(COLUMN_MEM_POOL_WITHDRAWAL, IteratorMode::End)
.map(|(key, val)| {
packed::WithdrawalRequestExtraReader::from_slice_should_be_ok(val.as_ref());
(
packed::Byte32Reader::from_slice_should_be_ok(key.as_ref()).unpack(),
packed::WithdrawalRequestExtra::new_unchecked(val.into()),
packed::WithdrawalRequestExtra::from_request_compitable_slice(val.as_ref())
.unwrap(),
)
})
}
Expand Down

0 comments on commit 5e66b85

Please sign in to comment.