aboutsummaryrefslogtreecommitdiffstats
path: root/vm.h
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-12-15 22:11:35 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-12-15 22:11:35 +0800
commit59fe1fdf9294feab37999e386784f80e390e9001 (patch)
tree5aa61d98891fd5e944a72f754ef6710740b5b13f /vm.h
parenta9b5c1b9cab3aee23b2df8f260ed935b36de257d (diff)
parentdd309de94c2cd6a5d77be877e4f30b5a70d725f5 (diff)
downloaddexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.gz
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.bz2
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.lz
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.xz
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.tar.zst
dexon-solidity-59fe1fdf9294feab37999e386784f80e390e9001.zip
Merge commit '1b8f9fdc3b44503890ed1bcb5da8bd5cb8dd83a5' into develop-evmcc
Conflicts: test/TestHelper.cpp
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.h b/vm.h
index 3d4b88d5..ff948cbf 100644
--- a/vm.h
+++ b/vm.h
@@ -55,8 +55,8 @@ public:
virtual u256 txCount(Address _a) override { return std::get<1>(addresses[_a]); }
virtual void suicide(Address _a) override { std::get<0>(addresses[_a]) += std::get<0>(addresses[myAddress]); addresses.erase(myAddress); }
virtual bytes const& codeAt(Address _a) override { return std::get<3>(addresses[_a]); }
- virtual h160 create(u256 _endowment, u256* _gas, bytesConstRef _init, eth::OnOpFunc const&) override;
- virtual bool call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256* _gas, bytesRef _out, eth::OnOpFunc const&, Address, Address) override;
+ virtual h160 create(u256 _endowment, u256& io_gas, bytesConstRef _init, eth::OnOpFunc const&) override;
+ virtual bool call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256& io_gas, bytesRef _out, eth::OnOpFunc const&, Address, Address) override;
void setTransaction(Address _caller, u256 _value, u256 _gasPrice, bytes const& _data);
void setContract(Address _myAddress, u256 _myBalance, u256 _myNonce, std::map<u256, u256> const& _storage, bytes const& _code);
void set(Address _a, u256 _myBalance, u256 _myNonce, std::map<u256, u256> const& _storage, bytes const& _code);