Skip to content

Commit

Permalink
fixup typo
Browse files Browse the repository at this point in the history
  • Loading branch information
baichuan3 committed May 29, 2024
1 parent 12e1ea6 commit 5a6128a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/rooch-rpc-api/src/jsonrpc_types/state_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl From<OpView<StateView>> for Op<State> {
}

#[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<StateView>,
Expand Down
2 changes: 1 addition & 1 deletion frameworks/moveos-stdlib/sources/object.move
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: key, K: copy + drop, V: store>(obj: &mut Object<T>, key: K, val: V) {
Expand Down
4 changes: 2 additions & 2 deletions frameworks/moveos-stdlib/src/natives/moveos_stdlib/cbor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ fn serialize_move_fields_to_cbor_value(
) -> Result<CborValue> {
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);
}
Expand Down

0 comments on commit 5a6128a

Please sign in to comment.