diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-12-15 22:11:35 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-12-15 22:11:35 +0800 |
commit | 59fe1fdf9294feab37999e386784f80e390e9001 (patch) | |
tree | 5aa61d98891fd5e944a72f754ef6710740b5b13f /vm.cpp | |
parent | a9b5c1b9cab3aee23b2df8f260ed935b36de257d (diff) | |
parent | dd309de94c2cd6a5d77be877e4f30b5a70d725f5 (diff) | |
download | dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.gz dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.zst dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.zip |
Merge commit '1b8f9fdc3b44503890ed1bcb5da8bd5cb8dd83a5' into develop-evmcc
Conflicts:
test/TestHelper.cpp
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -35,18 +35,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; |