diff --git a/test/libevm/vm.cpp b/test/libevm/vm.cpp index cb63e993c..2c56b7ada 100644 --- a/test/libevm/vm.cpp +++ b/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; diff --git a/test/libevm/vm.h b/test/libevm/vm.h index 18fa1ca25..6f86a57d6 100644 --- a/test/libevm/vm.h +++ b/test/libevm/vm.h @@ -81,6 +81,7 @@ public: bytes thisTxData; bytes thisTxCode; u256 gas; + u256 execGas; };