Browse Source

Merge pull request #2089 from winsvega/issues

Issues: VMTest filler fix
cl-refactor
Gav Wood 10 years ago
parent
commit
cbba411e27
  1. 3
      test/libevm/vm.cpp
  2. 1
      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;

1
test/libevm/vm.h

@ -81,6 +81,7 @@ public:
bytes thisTxData;
bytes thisTxCode;
u256 gas;
u256 execGas;
};

Loading…
Cancel
Save