File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,13 @@ class ContractType:
3535
3636
3737def 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
168170def 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 )
Original file line number Diff line number Diff line change 3131# Gas cost constants - used to calculate required contracts for any gas limit
3232# See README.md for detailed breakdown of these costs
3333GAS_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
You can’t perform that action at this time.
0 commit comments