| 156 | } |
| 157 | |
| 158 | void FakeExtVM::importExec(mObject& _o) |
| 159 | { |
| 160 | // cant use BOOST_REQUIRE, because this function is used outside boost test (createRandomTest) |
| 161 | assert(_o.count("address")> 0); |
| 162 | assert(_o.count("caller") > 0); |
| 163 | assert(_o.count("origin") > 0); |
| 164 | assert(_o.count("value") > 0); |
| 165 | assert(_o.count("data") > 0); |
| 166 | assert(_o.count("gasPrice") > 0); |
| 167 | assert(_o.count("gas") > 0); |
| 168 | |
| 169 | myAddress = Address(_o["address"].get_str()); |
| 170 | caller = Address(_o["caller"].get_str()); |
| 171 | origin = Address(_o["origin"].get_str()); |
| 172 | value = toInt(_o["value"]); |
| 173 | gasPrice = toInt(_o["gasPrice"]); |
| 174 | gas = toInt(_o["gas"]); |
| 175 | execGas = gas; |
| 176 | |
| 177 | thisTxCode.clear(); |
| 178 | code = thisTxCode; |
| 179 | |
| 180 | thisTxCode = importCode(_o); |
| 181 | if (_o["code"].type() != str_type && _o["code"].type() != array_type) |
| 182 | code.clear(); |
| 183 | |
| 184 | thisTxData.clear(); |
| 185 | thisTxData = importData(_o); |
| 186 | |
| 187 | data = &thisTxData; |
| 188 | } |
| 189 | |
| 190 | mArray FakeExtVM::exportCallCreates() |
| 191 | { |
no test coverage detected