test_slotnum_call_contexts()¶
Documentation for tests/amsterdam/eip7843_slotnum/test_slotnum.py::test_slotnum_call_contexts@ca7cac5c.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7843_slotnum/test_slotnum.py::test_slotnum_call_contexts --fork Amsterdam
Test that SLOTNUM returns the slot number in every call frame type.
The callee writes SLOTNUM to memory and returns it, so the check also holds inside STATICCALL frames where storage writes are banned. The caller stores the call's success flag and the returned value.
Source code in tests/amsterdam/eip7843_slotnum/test_slotnum.py
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 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.