Skip to content

Commit 4dc473d

Browse files
committed
chore: fix some minor issues in comment
Signed-off-by: deepdring <[email protected]>
1 parent ecb5148 commit 4dc473d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

chia/_tests/environments/wallet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ async def process_pending_states(
347347
1) Ensures all pending transactions have entered the mempool
348348
2) Checks that all balances have changed properly prior to a block being farmed
349349
3) Farms a block (to no one in particular)
350-
4) Chacks that all balances have changed properly after the block was farmed
350+
4) Checks that all balances have changed properly after the block was farmed
351351
5) Checks that all pending transactions that were gathered in step 1 are now confirmed
352352
6) Checks that if `reuse_puzhash` was set, no new derivations were created
353353
7) Ensures the wallet is in a synced state before progressing to the rest of the test

chia/_tests/wallet/test_wallet_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ async def test_transaction_send_cache(
611611
) -> None:
612612
"""
613613
The purpose of this test is to test that calling _resend_queue on the wallet node does not result in resending a
614-
spend to a peer that has already recieved that spend and is currently processing it. It also tests that once we
614+
spend to a peer that has already received that spend and is currently processing it. It also tests that once we
615615
have heard that the peer is done processing the spend, we _do_ properly resend it.
616616
"""
617617
[full_node_api], [(wallet_node, wallet_server)], _ = simulator_and_wallet
@@ -649,7 +649,7 @@ def logged_spends_len() -> int:
649649
with pytest.raises(AssertionError):
650650
await time_out_assert(5, logged_spends_len, 2)
651651

652-
# Tell the wallet that we recieved the spend (but failed to process it so it should send again)
652+
# Tell the wallet that we received the spend (but failed to process it so it should send again)
653653
msg = make_msg(
654654
ProtocolMessageTypes.transaction_ack,
655655
wallet_protocol.TransactionAck(

chia/wallet/conditions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def __post_init__(self) -> None:
427427
and self.coin_id_committed is None
428428
and self.mode_integer is None
429429
):
430-
raise ValueError("Must specify at least one committment. Anyone-can-send/recieve is not allowed.")
430+
raise ValueError("Must specify at least one commitment. Anyone-can-send/receive is not allowed.")
431431
if self.coin_id_committed is not None:
432432
if self.parent_id_committed is None or self.puzzle_hash_committed is None or self.amount_committed is None:
433433
if not (
@@ -450,7 +450,7 @@ def __post_init__(self) -> None:
450450
), "The value for coin_id_committed must be equal to the implied ID of the other three arguments"
451451
if self.mode_integer is not None:
452452
assert self.mode == self.mode_integer, (
453-
"If mode_integer is manually specified, you must specify committments that match with the mode"
453+
"If mode_integer is manually specified, you must specify commitments that match with the mode"
454454
)
455455

456456
@property
@@ -482,7 +482,7 @@ def convert_noneness_to_bit(maybe_none: Optional[Any]) -> int:
482482
@property
483483
def necessary_args(self) -> list[Program]:
484484
if self._nothing_committed:
485-
raise ValueError("Cannot generate necessary_args for a participant without committment information")
485+
raise ValueError("Cannot generate necessary_args for a participant without commitment information")
486486

487487
if self.coin_id_committed:
488488
return [Program.to(self.coin_id_committed)]
@@ -516,7 +516,7 @@ def from_mode_and_maybe_args(
516516
amount_committed: Optional[uint64] = None
517517
# This loop probably looks a little strange
518518
# It's trying to account for the fact that the arguments may be any 1 or 2 of these arguments in this order
519-
# Not sure of a more elgant way to do it
519+
# Not sure of a more elegant way to do it
520520
original_mode = mode
521521
for arg in args:
522522
if mode & 0b100:

0 commit comments

Comments
 (0)