diff --git a/crates/rooch-rpc-api/src/jsonrpc_types/state_view.rs b/crates/rooch-rpc-api/src/jsonrpc_types/state_view.rs index 165dbc7dff..a1dac3b42e 100644 --- a/crates/rooch-rpc-api/src/jsonrpc_types/state_view.rs +++ b/crates/rooch-rpc-api/src/jsonrpc_types/state_view.rs @@ -258,7 +258,7 @@ impl From> for Op { } #[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)] -// To support dynamic filed for json serialize and deserialize +// To support dynamic field for json serialize and deserialize pub struct DynamicFieldView { pub k: KeyStateView, pub v: OpView, diff --git a/frameworks/moveos-stdlib/sources/object.move b/frameworks/moveos-stdlib/sources/object.move index 4417f5bc81..4f5c2b054f 100644 --- a/frameworks/moveos-stdlib/sources/object.move +++ b/frameworks/moveos-stdlib/sources/object.move @@ -484,7 +484,7 @@ module moveos_std::object { // === Object Raw Dynamic Fields === #[private_generics(T)] - /// Add a dynamic filed to the object. Aborts if an field for this + /// Add a dynamic field to the object. Aborts if an field for this /// key already exists. The field itself is not stored in the /// object, and cannot be discovered from it. public fun add_field(obj: &mut Object, key: K, val: V) { diff --git a/frameworks/moveos-stdlib/src/natives/moveos_stdlib/cbor.rs b/frameworks/moveos-stdlib/src/natives/moveos_stdlib/cbor.rs index a559fe16e5..4414cd95e3 100644 --- a/frameworks/moveos-stdlib/src/natives/moveos_stdlib/cbor.rs +++ b/frameworks/moveos-stdlib/src/natives/moveos_stdlib/cbor.rs @@ -493,8 +493,8 @@ fn serialize_move_fields_to_cbor_value( ) -> Result { let mut fields = Vec::new(); - for (filed_layout, (name, value)) in layout_fields.iter().zip(value_fields) { - let cbor_value = serialize_move_value_to_cbor_value(&filed_layout.layout, value)?; + for (field_layout, (name, value)) in layout_fields.iter().zip(value_fields) { + let cbor_value = serialize_move_value_to_cbor_value(&field_layout.layout, value)?; let values = (CborValue::Text(name.clone().into_string()), cbor_value); fields.push(values); }