Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: fudancoder <[email protected].>
  • Loading branch information
fudancoder committed Dec 19, 2024
1 parent a3e0d5f commit 2e2adfb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/clarinet-cli/examples/cbtc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ the 2nd output of the transaction to a Stacks address, and sending the minted to
cost: 5960
```

Another chainhook predicate, specified in `chainhooks/unwrap-btc.json` is observing cBTC burn events occuring on the Stacks blockchain, thanks to the following configuration:
Another chainhook predicate, specified in `chainhooks/unwrap-btc.json` is observing cBTC burn events occurring on the Stacks blockchain, thanks to the following configuration:

```json
"if_this": {
Expand All @@ -86,7 +86,7 @@ Another chainhook predicate, specified in `chainhooks/unwrap-btc.json` is observ
}
```

When the authority process this chainhook occurences, it sends BTC from its reserve to `cBTC` burner, by assuming that a p2pkh is being used.
When the authority process this chainhook occurrences, it sends BTC from its reserve to `cBTC` burner, by assuming that a p2pkh is being used.

The wrap / unwrap deployment plans can both be respectively performed with the commands:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ module.exports.unwrapBtc = async (event: HttpEvent) => {
}
if (cumulatedAmount < totalRequired) {
return {
message: "Funding unsufficient",
message: "Funding insufficient",
unspentOutputs: unspentOutputs,
statusCode: 404,
};
Expand Down
2 changes: 1 addition & 1 deletion components/clarinet-cli/src/generate/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const address1 = accounts.get("wallet_1")!;
*/
describe("example tests", () => {
it("ensures simnet is well initalised", () => {
it("ensures simnet is well initialised", () => {
expect(simnet.blockHeight).toBeDefined();
});
Expand Down
2 changes: 1 addition & 1 deletion components/clarity-lsp/src/common/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub async fn process_notification(
})?;
}

// Only build the initial protocal state if it does not exist
// Only build the initial protocol state if it does not exist
if editor_state.try_read(|es| es.protocols.contains_key(&manifest_location))? {
return Ok(LspNotificationResponse::default());
}
Expand Down
4 changes: 2 additions & 2 deletions components/clarity-repl/src/analysis/annotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ mod tests {
fn parse_unchecked_data() {
match "unchecked_data".parse::<WarningKind>() {
Ok(WarningKind::UncheckedData) => (),
_ => panic!("failed to parse warning kind correectly"),
_ => panic!("failed to parse warning kind correctly"),
};
}

Expand All @@ -97,7 +97,7 @@ mod tests {
fn parse_allow_unchecked_data() {
match "allow(unchecked_data)".parse::<AnnotationKind>() {
Ok(AnnotationKind::Allow(WarningKind::UncheckedData)) => (),
_ => panic!("failed to parse annotation kind correectly"),
_ => panic!("failed to parse annotation kind correctly"),
};
}

Expand Down
2 changes: 1 addition & 1 deletion components/stacks-codec/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3576,7 +3576,7 @@ impl StacksMessageCodec for SinglesigSpendingCondition {
if hash_mode == SinglesigHashMode::P2WPKH
&& key_encoding != TransactionPublicKeyEncoding::Compressed
{
return Err(CodecError::DeserializeError("Failed to parse singlesig spending condition: incomaptible hash mode and key encoding".to_string()));
return Err(CodecError::DeserializeError("Failed to parse singlesig spending condition: incompatible hash mode and key encoding".to_string()));
}

Ok(SinglesigSpendingCondition {
Expand Down

0 comments on commit 2e2adfb

Please sign in to comment.