diff --git a/aptos-move/aptos-aggregator/src/delta_change_set.rs b/aptos-move/aptos-aggregator/src/delta_change_set.rs
index 51a120acb239d..c7f7800631f5b 100644
--- a/aptos-move/aptos-aggregator/src/delta_change_set.rs
+++ b/aptos-move/aptos-aggregator/src/delta_change_set.rs
@@ -589,10 +589,16 @@ mod test {
let sub_op = delta_sub(100, 200);
let add_result = state_view.try_convert_aggregator_v1_delta_into_write_op(&KEY, &add_op);
- assert_ok_eq!(add_result, WriteOp::Modification(serialize(&200).into()));
+ assert_ok_eq!(
+ add_result,
+ WriteOp::legacy_modification(serialize(&200).into())
+ );
let sub_result = state_view.try_convert_aggregator_v1_delta_into_write_op(&KEY, &sub_op);
- assert_ok_eq!(sub_result, WriteOp::Modification(serialize(&0).into()));
+ assert_ok_eq!(
+ sub_result,
+ WriteOp::legacy_modification(serialize(&0).into())
+ );
}
#[test]
diff --git a/aptos-move/aptos-aggregator/src/resolver.rs b/aptos-move/aptos-aggregator/src/resolver.rs
index b4751aa585633..f2c084e7ff445 100644
--- a/aptos-move/aptos-aggregator/src/resolver.rs
+++ b/aptos-move/aptos-aggregator/src/resolver.rs
@@ -15,7 +15,7 @@ use aptos_types::{
aggregator::PanicError,
state_store::{
state_key::StateKey,
- state_value::{StateValue, StateValueMetadataKind},
+ state_value::{StateValue, StateValueMetadata},
},
write_set::WriteOp,
};
@@ -64,7 +64,7 @@ pub trait TAggregatorV1View {
fn get_aggregator_v1_state_value_metadata(
&self,
id: &Self::Identifier,
- ) -> anyhow::Result