Skip to content

Commit f2cd5f9

Browse files
committed
fix: pre-commit lint hooks
1 parent 6e6863a commit f2cd5f9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

tests/benchmark/bloatnet/deploy_bloatnet_simple.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ class ContractType:
3535

3636

3737
def generate_max_size_bytecode(salt: int = 0, max_code_size: int = 24576) -> Tuple[bytes, bytes]:
38-
"""Generate max-size contract bytecode for standard bloatnet tests.
38+
"""
39+
Generate max-size contract bytecode for standard bloatnet tests.
3940
4041
Args:
4142
salt: Unique salt for generating unique bytecode
4243
max_code_size: Maximum contract size (default 24576 bytes for mainnet)
44+
4345
"""
4446
# Init code copies runtime bytecode to memory and returns it
4547
init_code = bytearray()
@@ -166,11 +168,13 @@ def select_contract_type() -> str:
166168

167169

168170
def get_bytecode_generator(contract_type: str, max_code_size: int):
169-
"""Get the appropriate bytecode generator for the contract type.
171+
"""
172+
Get the appropriate bytecode generator for the contract type.
170173
171174
Args:
172175
contract_type: Type of contract to generate
173176
max_code_size: Maximum contract size in bytes
177+
174178
"""
175179
if contract_type == ContractType.MAX_SIZE_24KB:
176180
return lambda salt: generate_max_size_bytecode(salt, max_code_size)

tests/benchmark/bloatnet/test_bloatnet.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
# Gas cost constants - used to calculate required contracts for any gas limit
3232
# See README.md for detailed breakdown of these costs
3333
GAS_PER_CONTRACT_BALANCE_EXTCODESIZE = 2707 # BALANCE(cold) + EXTCODESIZE(warm)
34-
GAS_PER_CONTRACT_BALANCE_EXTCODECOPY = 2710 # BALANCE(cold) + EXTCODECOPY(warm, 1 byte) - optimized
34+
# BALANCE(cold) + EXTCODECOPY(warm, 1 byte) - optimized
35+
GAS_PER_CONTRACT_BALANCE_EXTCODECOPY = 2710
3536

3637
# Configuration for CREATE2 pre-deployed contracts
3738
# These values must match what the deployment script generates

0 commit comments

Comments
 (0)