Skip to content

Commit ca1d795

Browse files
souradeep-dasSamWilsn
authored andcommitted
make comments consistent
1 parent 7318404 commit ca1d795

File tree

17 files changed

+66
-89
lines changed

17 files changed

+66
-89
lines changed

src/ethereum/arrow_glacier/fork.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,16 +452,15 @@ def check_transaction(
452452
GasUsedExceedsLimitError :
453453
If the gas used by the transaction exceeds the block's gas limit.
454454
NonceMismatchError :
455-
If the nonce of the transaction is not valid for the sender.
455+
If the nonce of the transaction is not equal to the sender's nonce.
456456
InsufficientBalanceError :
457-
If the sender does not have enough balance to pay for the transaction
458-
and gas fees.
457+
If the sender's balance is not enough to pay for the transaction.
459458
InvalidSenderError :
460459
If the transaction is from an address that does not exist anymore.
461-
InsufficientMaxFeePerGasError :
462-
If the maximum fee per gas is less than the base fee per gas.
463460
PriorityFeeGreaterThanMaxFeeError :
464-
If the priority fee per gas is greater than the maximum fee per gas.
461+
If the priority fee is greater than the maximum fee per gas.
462+
InsufficientMaxFeePerGasError :
463+
If the maximum fee per gas is insufficient for the transaction.
465464
"""
466465
gas_available = block_env.block_gas_limit - block_output.block_gas_used
467466
if tx.gas > gas_available:

src/ethereum/berlin/fork.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ def check_transaction(
371371
NonceMismatchError :
372372
If the nonce of the transaction is not equal to the sender's nonce.
373373
InsufficientBalanceError :
374-
If the sender's balance is not enough to pay for the transaction
375-
and gas fees.
374+
If the sender's balance is not enough to pay for the transaction.
376375
InvalidSenderError :
377376
If the transaction is from an address that does not exist anymore.
378377
"""

src/ethereum/byzantium/fork.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def check_transaction(
366366
NonceMismatchError :
367367
If the nonce of the transaction is not equal to the sender's nonce.
368368
InsufficientBalanceError :
369-
If the sender's balance is not enough to pay for the transaction
369+
If the sender's balance is not enough to pay for the transaction.
370370
InvalidSenderError :
371371
If the transaction is from an address that does not exist anymore.
372372
"""

src/ethereum/cancun/fork.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -391,28 +391,28 @@ def check_transaction(
391391
If the transaction is not includable.
392392
GasUsedExceedsLimitError :
393393
If the gas used by the transaction exceeds the block's gas limit.
394-
BlobGasLimitExceededError :
395-
If the blob gas used by the transaction exceeds the block's blob gas
396-
limit.
394+
NonceMismatchError :
395+
If the nonce of the transaction is not equal to the sender's nonce.
396+
InsufficientBalanceError :
397+
If the sender's balance is not enough to pay for the transaction.
398+
InvalidSenderError :
399+
If the transaction is from an address that does not exist anymore.
397400
PriorityFeeGreaterThanMaxFeeError :
398401
If the priority fee is greater than the maximum fee per gas.
399-
InsufficientMaxFeePerBlobGasError :
400-
If the maximum fee per blob gas is insufficient for the transaction.
401402
InsufficientMaxFeePerGasError :
402403
If the maximum fee per gas is insufficient for the transaction.
404+
InsufficientMaxFeePerBlobGasError :
405+
If the maximum fee per blob gas is insufficient for the transaction.
406+
BlobGasLimitExceededError :
407+
If the blob gas used by the transaction exceeds the block's blob gas
408+
limit.
403409
InvalidBlobVersionedHashError :
404410
If the transaction contains a blob versioned hash with an invalid
405411
version.
406412
NoBlobDataError :
407413
If the transaction is a type 3 but has no blobs.
408414
TransactionTypeContractCreationError:
409415
If the transaction type is not allowed to create contracts.
410-
NonceMismatchError :
411-
If the nonce of the transaction is not equal to the sender's nonce.
412-
InsufficientBalanceError :
413-
If the sender's balance is not enough to pay for the transaction
414-
InvalidSenderError :
415-
If the transaction is from an address that does not exist anymore.
416416
"""
417417
gas_available = block_env.block_gas_limit - block_output.block_gas_used
418418
blob_gas_available = MAX_BLOB_GAS_PER_BLOCK - block_output.blob_gas_used

src/ethereum/constantinople/fork.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,9 @@ def check_transaction(
364364
GasUsedExceedsLimitError :
365365
If the gas used by the transaction exceeds the block's gas limit.
366366
NonceMismatchError :
367-
If the nonce of the transaction does not match the sender's nonce.
367+
If the nonce of the transaction is not equal to the sender's nonce.
368368
InsufficientBalanceError :
369-
If the sender's balance is insufficient to cover the transaction
370-
value and gas fee.
369+
If the sender's balance is not enough to pay for the transaction.
371370
InvalidSenderError :
372371
If the transaction is from an address that does not exist anymore.
373372
"""

src/ethereum/dao_fork/fork.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,9 @@ def check_transaction(
376376
GasUsedExceedsLimitError :
377377
If the gas used by the transaction exceeds the block's gas limit.
378378
NonceMismatchError :
379-
If the nonce of the transaction does not match the sender's nonce.
379+
If the nonce of the transaction is not equal to the sender's nonce.
380380
InsufficientBalanceError :
381-
If the sender's balance is insufficient to cover the transaction
382-
value and gas fee.
381+
If the sender's balance is not enough to pay for the transaction.
383382
InvalidSenderError :
384383
If the transaction is from an address that does not exist anymore.
385384
"""

src/ethereum/frontier/fork.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,9 @@ def check_transaction(
359359
GasUsedExceedsLimitError :
360360
If the gas used by the transaction exceeds the block's gas limit.
361361
NonceMismatchError :
362-
If the nonce of the transaction does not match the sender's nonce.
362+
If the nonce of the transaction is not equal to the sender's nonce.
363363
InsufficientBalanceError :
364-
If the sender's balance is insufficient to cover the transaction
365-
value and gas fee.
364+
If the sender's balance is not enough to pay for the transaction.
366365
InvalidSenderError :
367366
If the transaction is from an address that does not exist anymore.
368367
"""

src/ethereum/gray_glacier/fork.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -450,21 +450,17 @@ def check_transaction(
450450
InvalidBlock :
451451
If the transaction is not includable.
452452
GasUsedExceedsLimitError :
453-
If the gas used by the transaction exceeds the gas limit of the block.
453+
If the gas used by the transaction exceeds the block's gas limit.
454454
NonceMismatchError :
455-
If the nonce of the transaction does not match the expected nonce
456-
for the sender.
455+
If the nonce of the transaction is not equal to the sender's nonce.
457456
InsufficientBalanceError :
458-
If the sender does not have enough balance to pay for the gas fee
459-
and the value of the transaction.
457+
If the sender's balance is not enough to pay for the transaction.
460458
InvalidSenderError :
461459
If the transaction is from an address that does not exist anymore.
462460
PriorityFeeGreaterThanMaxFeeError:
463-
If the priority fee per gas is greater than the maximum fee per gas
464-
in a 1559 transaction.
461+
If the priority fee is greater than the maximum fee per gas.
465462
InsufficientMaxFeePerGasError :
466-
If the maximum fee per gas is less than the base fee per gas in a
467-
1559 transaction.
463+
If the maximum fee per gas is insufficient for the transaction.
468464
"""
469465
gas_available = block_env.block_gas_limit - block_output.block_gas_used
470466
if tx.gas > gas_available:

src/ethereum/homestead/fork.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,9 @@ def check_transaction(
359359
GasUsedExceedsLimitError :
360360
If the gas used by the transaction exceeds the block's gas limit.
361361
NonceMismatchError :
362-
If the nonce of the transaction does not match the sender's nonce.
362+
If the nonce of the transaction is not equal to the sender's nonce.
363363
InsufficientBalanceError :
364-
If the sender's balance is insufficient to cover the transaction
365-
value and gas fee.
364+
If the sender's balance is not enough to pay for the transaction.
366365
InvalidSenderError :
367366
If the transaction is from an address that does not exist anymore.
368367
"""

src/ethereum/istanbul/fork.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,9 @@ def check_transaction(
364364
GasUsedExceedsLimitError :
365365
If the gas used by the transaction exceeds the block's gas limit.
366366
NonceMismatchError :
367-
If the nonce of the transaction does not match the sender's nonce.
367+
If the nonce of the transaction is not equal to the sender's nonce.
368368
InsufficientBalanceError :
369-
If the sender's balance is insufficient to cover the transaction
370-
value and gas fee.
369+
If the sender's balance is not enough to pay for the transaction.
371370
InvalidSenderError :
372371
If the transaction is from an address that does not exist anymore.
373372
"""

0 commit comments

Comments
 (0)