Browse Source

Issues: VMTest filler fix

cl-refactor
Dimitry 10 years ago
parent
commit
7ff49e87bf
  1. 3
      test/libevm/vm.cpp
  2. 2
      test/libevm/vm.h

3
test/libevm/vm.cpp

@ -160,7 +160,7 @@ mObject FakeExtVM::exportExec()
ret["origin"] = toString(origin);
ret["value"] = toCompactHex(value, HexPrefix::Add, 1);
ret["gasPrice"] = toCompactHex(gasPrice, HexPrefix::Add, 1);
ret["gas"] = toCompactHex(gas, HexPrefix::Add, 1);
ret["gas"] = toCompactHex(execGas, HexPrefix::Add, 1);
ret["data"] = toHex(data, 2, HexPrefix::Add);
ret["code"] = toHex(code, 2, HexPrefix::Add);
return ret;
@ -183,6 +183,7 @@ void FakeExtVM::importExec(mObject& _o)
value = toInt(_o["value"]);
gasPrice = toInt(_o["gasPrice"]);
gas = toInt(_o["gas"]);
execGas = gas;
thisTxCode.clear();
code = thisTxCode;

2
test/libevm/vm.h

@ -80,7 +80,7 @@ public:
eth::Transactions callcreates;
bytes thisTxData;
bytes thisTxCode;
u256 gas;
u256 gas, execGas;
};

Loading…
Cancel
Save