Skip to content

Commit

Permalink
chore: fix some comments
Browse files Browse the repository at this point in the history
Signed-off-by: evenevent <[email protected]>
  • Loading branch information
evenevent committed Aug 13, 2024
1 parent 8ff39ea commit 07e88ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const main = () => {

console.log(`Change address: ${changeAddress.to_base58()}`);

// This is currently required becuase the line:
// This is currently required because the line:
// `const changeSecretKey = deriveSecretKey(rootSecret, changePath);`
// Takes ownership of the changePath pointer and frees it so it's null when we get to this point
changePath = DerivationPath.new(0, new Uint32Array([0]));
Expand Down
2 changes: 1 addition & 1 deletion ergo-p2p/src/peer_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl ScorexSerializable for PeerSpec {
let node_name = r.get_short_string()?;
let declared_addr: Option<PeerAddr> = r.get_option(&|r: &mut R| {
// read the size bytes
// not used at the moment becuase PeerAddr is currently ipv4/4 bytes
// not used at the moment because PeerAddr is currently ipv4/4 bytes
r.get_u8()?;
let addr =
PeerAddr::scorex_parse(r).map_err(|_| VlqEncodingError::VlqDecodingFailed)?;
Expand Down
2 changes: 1 addition & 1 deletion ergo-rest/src/wasm_timer/timer/delay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ impl Delay {
/// specified by `at`.
///
/// This method is usable even of this instance of `Delay` has "already
/// fired". That is, if this future has resovled, calling this method means
/// fired". That is, if this future has resolved, calling this method means
/// that the future will still re-resolve at the specified instant.
///
/// If `at` is in the past then this future will immediately be resolved
Expand Down
2 changes: 1 addition & 1 deletion ergotree-ir/src/chain/ergo_box/box_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct BoxValue(pub(crate) u64);
pub struct BoxValue(pub(crate) u64);

impl BoxValue {
/// Minimal box value per byte of the serialized box that was set on on launch
/// Minimal box value per byte of the serialized box that was set on launch
pub const MIN_VALUE_PER_BOX_BYTE: u32 = 360;
/// Minimal theoretical box size (smallest tree, no tokens, no registers, etc.)
const MIN_BOX_SIZE_BYTES: usize = 30;
Expand Down

0 comments on commit 07e88ae

Please sign in to comment.