diff --git a/crates/mem-pool/src/sync/mq/gw_kafka.rs b/crates/mem-pool/src/sync/mq/gw_kafka.rs
index 84e4f0e2c..24ac8a1d0 100644
--- a/crates/mem-pool/src/sync/mq/gw_kafka.rs
+++ b/crates/mem-pool/src/sync/mq/gw_kafka.rs
@@ -3,7 +3,7 @@ use std::time::{SystemTime, UNIX_EPOCH};
use anyhow::Result;
use async_trait::async_trait;
use gw_types::{
- packed::{RefreshMemBlockMessage, RefreshMemBlockMessageUnion},
+ packed::{RefreshMemBlockMessage, RefreshMemBlockMessageReader, RefreshMemBlockMessageUnion},
prelude::{Builder, Entity, Reader},
};
use rdkafka::{
@@ -134,8 +134,7 @@ impl Consume for Consumer {
);
if let Some(payload) = payload {
- let refresh_msg = RefreshMemBlockMessage::from_slice(payload)?;
- let reader = refresh_msg.as_reader();
+ let reader = RefreshMemBlockMessageReader::from_slice(payload)?;
let refresh_msg = reader.to_enum();
match &refresh_msg {
gw_types::packed::RefreshMemBlockMessageUnionReader::NextL2Transaction(
diff --git a/crates/store/src/mem_pool_state.rs b/crates/store/src/mem_pool_state.rs
index 823ebb5fe..265dab0b1 100644
--- a/crates/store/src/mem_pool_state.rs
+++ b/crates/store/src/mem_pool_state.rs
@@ -14,8 +14,8 @@ use gw_db::{
schema::{Col, COLUMNS, COLUMN_ACCOUNT_SMT_BRANCH, COLUMN_ACCOUNT_SMT_LEAF, COLUMN_META},
};
use gw_types::{
- packed,
- prelude::{Entity, FromSliceShouldBeOk, Pack, Reader, Unpack},
+ from_box_should_be_ok, packed,
+ prelude::{Entity, FromSliceShouldBeOk, Pack, Unpack},
};
use crate::{
@@ -115,11 +115,9 @@ impl MemStore {
pub fn get_mem_block_account_count(&self) -> Result