test_extcodehash_dynamic_argument()¶
Documentation for tests/constantinople/eip1052_extcodehash/test_extcodehash.py::test_extcodehash_dynamic_argument@ffe48572.
Generate fixtures for these test cases for Bogota with:
Test EXTCODEHASH/EXTCODESIZE with address loaded dynamically from calldata.
The target address is not hardcoded in bytecode but read via CALLDATALOAD at runtime. Five target types are tested: a precompile with no state, a precompile with balance, a contract with code, an EOA with balance, and a non-existent address.
Source code in tests/constantinople/eip1052_extcodehash/test_extcodehash.py
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 | |
Parametrized Test Cases¶
This test generates 5 parametrized test cases across 11 forks.