test_code_deposit_state_gas_exact_fit_boundary()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_code_deposit_state_gas_exact_fit_boundary@5c024cbb.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_code_deposit_state_gas_exact_fit_boundary --fork Amsterdam
Pin the code-deposit state gas at its exact-fit boundary.
A CREATE tx deploys code_size bytes with gas_limit set so the
deposit lands exactly at the available gas (deploys) or one gas short
(halts: state restored, the top-frame NEW_ACCOUNT refilled, no
code). Under EIP-2780 the created account's NEW_ACCOUNT state gas
is charged at the top frame (not bundled in the intrinsic), so
exact_fit_gas includes it explicitly. The two regimes pin the halt
billing: over-cap reservoir rolls the reservoir back so the sender
pays the cap; in-cap spill refills the spilled state gas into
gas_left and burns it all, billing the full gas_limit. The
scaling tests assert success only.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.