diff --git a/crates/freeze/src/datasets/transactions.rs b/crates/freeze/src/datasets/transactions.rs index 1dacf7f4..772d5597 100644 --- a/crates/freeze/src/datasets/transactions.rs +++ b/crates/freeze/src/datasets/transactions.rs @@ -9,8 +9,8 @@ use crate::{ dataframes::SortableDataFrame, types::{ conversions::{ToVecHex, ToVecU8}, - BlockChunk, CollectError, ColumnType, Dataset, Datatype, RowFilter, Source, Table, - TransactionChunk, Transactions, U256Type, + BlockChunk, CollectError, ColumnEncoding, ColumnType, Dataset, Datatype, RowFilter, Source, + Table, TransactionChunk, Transactions, U256Type, }, with_series, with_series_binary, with_series_u256, }; diff --git a/crates/freeze/src/types/dataframes/creation.rs b/crates/freeze/src/types/dataframes/creation.rs index a239e7e8..002d472b 100644 --- a/crates/freeze/src/types/dataframes/creation.rs +++ b/crates/freeze/src/types/dataframes/creation.rs @@ -33,7 +33,7 @@ macro_rules! with_series_u256 { let name = name.as_str(); let converted: Vec> = $value.iter().map(|v| v.to_vec_u8()).collect(); - if let Some(ColumnType::Hex) = $schema.column_type($name) { + if ColumnEncoding::Hex == $schema.binary_type { $all_series.push(Series::new(name, converted.to_vec_hex())); } else { $all_series.push(Series::new(name, converted));