aboutsummaryrefslogtreecommitdiffstats
path: root/vm.h
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-10-20 23:36:26 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-10-20 23:36:26 +0800
commit1b2d4c25e6f04830209e033c9566ca19187a92ad (patch)
tree24ff45c6c28214451446f10d4d4471fcd495d4e1 /vm.h
parent29ad070d07a474f9115cc09ea43b559ebdcd8eb8 (diff)
downloaddexon-solidity-1b2d4c25e6f04830209e033c9566ca19187a92ad.tar.gz
dexon-solidity-1b2d4c25e6f04830209e033c9566ca19187a92ad.tar.zst
dexon-solidity-1b2d4c25e6f04830209e033c9566ca19187a92ad.zip
Another round of fixing ExtVM interface
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/vm.h b/vm.h
index 34e0e855..a9897bee 100644
--- a/vm.h
+++ b/vm.h
@@ -53,15 +53,15 @@ public:
FakeExtVM() {}
FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth = 0);
- u256 store(u256 _n) { return std::get<2>(addresses[myAddress])[_n]; }
- void setStore(u256 _n, u256 _v) { std::get<2>(addresses[myAddress])[_n] = _v; }
- u256 balance(Address _a) { return std::get<0>(addresses[_a]); }
- void subBalance(u256 _a) { std::get<0>(addresses[myAddress]) -= _a; }
- u256 txCount(Address _a) { return std::get<1>(addresses[_a]); }
- void suicide(Address _a) { std::get<0>(addresses[_a]) += std::get<0>(addresses[myAddress]); addresses.erase(myAddress); }
- bytes const& codeAt(Address _a) { return std::get<3>(addresses[_a]); }
- h160 create(u256 _endowment, u256* _gas, bytesConstRef _init, eth::OnOpFunc);
- bool call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256* _gas, bytesRef _out, eth::OnOpFunc, Address, Address);
+ u256 store(u256 _n) override { return std::get<2>(addresses[myAddress])[_n]; }
+ void setStore(u256 _n, u256 _v) override { std::get<2>(addresses[myAddress])[_n] = _v; }
+ u256 balance(Address _a) override { return std::get<0>(addresses[_a]); }
+ void subBalance(u256 _a) override { std::get<0>(addresses[myAddress]) -= _a; }
+ u256 txCount(Address _a) override { return std::get<1>(addresses[_a]); }
+ void suicide(Address _a) override { std::get<0>(addresses[_a]) += std::get<0>(addresses[myAddress]); addresses.erase(myAddress); }
+ bytes const& codeAt(Address _a) override { return std::get<3>(addresses[_a]); }
+ h160 create(u256 _endowment, u256* _gas, bytesConstRef _init, eth::OnOpFunc const&) override;
+ bool call(Address _receiveAddress, u256 _value, bytesConstRef _data, u256* _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);