diff --git a/crates/rooch-genesis/released/test b/crates/rooch-genesis/released/test index 59847add09..68f294a5e7 100644 Binary files a/crates/rooch-genesis/released/test and b/crates/rooch-genesis/released/test differ diff --git a/frameworks/framework-release/released/1/stdlib b/frameworks/framework-release/released/1/stdlib index abcf7776b2..fccead1e16 100644 Binary files a/frameworks/framework-release/released/1/stdlib and b/frameworks/framework-release/released/1/stdlib differ diff --git a/moveos/moveos-object-runtime/src/runtime.rs b/moveos/moveos-object-runtime/src/runtime.rs index 7d8a6b86ec..19008074af 100644 --- a/moveos/moveos-object-runtime/src/runtime.rs +++ b/moveos/moveos-object-runtime/src/runtime.rs @@ -16,7 +16,7 @@ use move_core_types::{ account_address::AccountAddress, gas_algebra::NumBytes, language_storage::ModuleId, value::MoveTypeLayout, vm_status::StatusCode, }; -use move_vm_types::values::Value; +use move_vm_types::values::{StructRef, Value}; use moveos_types::{move_std::string::MoveString, moveos_std::timestamp::Timestamp}; use moveos_types::{moveos_std::object::TimestampObject, state::StateChangeSetV2}; use moveos_types::{ @@ -249,10 +249,11 @@ impl ObjectRuntime { .get_loaded_object(×tamp_id) .expect("Failed to get timestamp object") .expect("Timestamp object must exist"); - let timestamp_value = timestamp_obj + let timestamp_ref = timestamp_obj .borrow_value(None) .expect("Failed to borrow timestamp value"); - Timestamp::from_runtime_value(timestamp_value) + let struct_ref = timestamp_ref.value_as::().expect("Failed to get struct ref"); + Timestamp::from_runtime_value(struct_ref.read_ref().expect("Failed to read timestamp value")) .expect("Failed to convert timestamp value to timestamp") }