Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comment #1633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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