MCPcopy Create free account
hub / github.com/LUX-Core/lux / importExec

Method importExec

src/cpp-ethereum/test/libevm/vm.cpp:158–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158void 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
190mArray FakeExtVM::exportCallCreates()
191{

Callers 1

doVMTestsFunction · 0.80

Calls 7

toIntFunction · 0.85
importCodeFunction · 0.85
importDataFunction · 0.85
get_strMethod · 0.80
countMethod · 0.45
clearMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected