aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-12-12 20:33:42 +0800
committerGav Wood <i@gavwood.com>2014-12-12 22:53:57 +0800
commit6b44029adcf8389574ba198bf32382f4c5983d68 (patch)
tree52ac5c5537d948af224e2fabfa695107a417b649 /vm.cpp
parent696b5b3a493d7e9c8bee455bed24bdfcfe3a1fb0 (diff)
downloaddexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.tar.gz
dexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.tar.zst
dexon-solidity-6b44029adcf8389574ba198bf32382f4c5983d68.zip
Beginnings of cleaning up the Executive/State code.
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm.cpp b/vm.cpp
index d8e85383..f05981d9 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -34,18 +34,18 @@ using namespace dev::test;
FakeExtVM::FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth): /// TODO: XXX: remove the default argument & fix.
ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytes(), _previousBlock, _currentBlock, _depth) {}
-h160 FakeExtVM::create(u256 _endowment, u256* _gas, bytesConstRef _init, OnOpFunc const&)
+h160 FakeExtVM::create(u256 _endowment, u256& io_gas, bytesConstRef _init, OnOpFunc const&)
{
Address na = right160(sha3(rlpList(myAddress, get<1>(addresses[myAddress]))));
- Transaction t(_endowment, gasPrice, *_gas, _init.toBytes());
+ Transaction t(_endowment, gasPrice, io_gas, _init.toBytes());
callcreates.push_back(t);
return na;
}
-bool FakeExtVM::call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256* _gas, bytesRef _out, OnOpFunc const&, Address _myAddressOverride, Address _codeAddressOverride)
+bool FakeExtVM::call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256& io_gas, bytesRef _out, OnOpFunc const&, Address _myAddressOverride, Address _codeAddressOverride)
{
- Transaction t(_value, gasPrice, *_gas, _receiveAddress, _data.toVector());
+ Transaction t(_value, gasPrice, io_gas, _receiveAddress, _data.toVector());
callcreates.push_back(t);
(void)_out;
(void)_myAddressOverride;