diff options
author | Gav Wood <i@gavwood.com> | 2014-12-12 20:33:42 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-12-12 22:53:57 +0800 |
commit | 6b44029adcf8389574ba198bf32382f4c5983d68 (patch) | |
tree | 52ac5c5537d948af224e2fabfa695107a417b649 /vm.cpp | |
parent | 696b5b3a493d7e9c8bee455bed24bdfcfe3a1fb0 (diff) | |
download | dexon-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.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |