test_account_write_authority_is_sender()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_authorization_charges.py::test_account_write_authority_is_sender@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_authorization_charges.py::test_account_write_authority_is_sender --fork Amsterdam
An authority that is the transaction sender pays no
ACCOUNT_WRITE: the sender's account was already written at
inclusion (nonce bump and fee deduction, priced into TX_BASE),
so the delegation write is not the first write to it within the
transaction.
The self-sponsored authorization still pays AUTH_BASE for its
net-new delegation indicator. This case guards the first-write rule
against over-charging accounts the transaction has already paid to
write.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_authorization_charges.py
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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.