Skip to content

Commit

Permalink
Fix typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EmelyanenkoK committed Jun 27, 2024
1 parent 3597927 commit b375659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crypto/block/block-parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ bool MsgEnvelope::pack(vm::CellBuilder& cb, const Record_std& data) const {
}
if (v2) {
if (!(cb.store_bool_bool((bool)data.emitted_lt) &&
(!data.emitted_lt || cb.store_long_bool(data.emitted_lt.value(), 64)))) { // emutted_lt:(Maybe uint64)
(!data.emitted_lt || cb.store_long_bool(data.emitted_lt.value(), 64)))) { // emitted_lt:(Maybe uint64)
return false;
}
if (!(cb.store_bool_bool((bool)data.metadata) &&
Expand All @@ -934,7 +934,7 @@ bool MsgEnvelope::pack_cell(td::Ref<vm::Cell>& cell, const Record_std& data) con
}

bool MsgEnvelope::get_emitted_lt(const vm::CellSlice& cs, unsigned long long& emitted_lt) const {
// Emitted lt is emnitted_lt from MsgEnvelope (if present), otherwise created_lt
// Emitted lt is emitted_lt from MsgEnvelope (if present), otherwise created_lt
if (!cs.size_refs()) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion crypto/block/block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,7 @@ bool remove_dispatch_queue_entry(vm::AugmentedDictionary& dispatch_queue, const
}

bool MsgMetadata::unpack(vm::CellSlice& cs) {
// msg_metadata#01 depth:uint32 initiator_addr:MsgAddressInt initiator_lt:uint64 = MsgMetadata;
// msg_metadata#0 depth:uint32 initiator_addr:MsgAddressInt initiator_lt:uint64 = MsgMetadata;
int tag;
return cs.fetch_int_to(4, tag) && tag == 0 && cs.fetch_uint_to(32, depth) &&
cs.prefetch_ulong(3) == 0b100 && // std address, no anycast
Expand Down

0 comments on commit b375659

Please sign in to comment.