mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix FakeExtVM.
This commit is contained in:
parent
25c1498b04
commit
3359c6a788
1
vm.h
1
vm.h
@ -50,6 +50,7 @@ public:
|
|||||||
|
|
||||||
virtual u256 store(u256 _n) override { return std::get<2>(addresses[myAddress])[_n]; }
|
virtual u256 store(u256 _n) override { return std::get<2>(addresses[myAddress])[_n]; }
|
||||||
virtual void setStore(u256 _n, u256 _v) override { std::get<2>(addresses[myAddress])[_n] = _v; }
|
virtual void setStore(u256 _n, u256 _v) override { std::get<2>(addresses[myAddress])[_n] = _v; }
|
||||||
|
virtual bool exists(Address _a) override { return !!addresses.count(_a); }
|
||||||
virtual u256 balance(Address _a) override { return std::get<0>(addresses[_a]); }
|
virtual u256 balance(Address _a) override { return std::get<0>(addresses[_a]); }
|
||||||
virtual void subBalance(u256 _a) override { std::get<0>(addresses[myAddress]) -= _a; }
|
virtual void subBalance(u256 _a) override { std::get<0>(addresses[myAddress]) -= _a; }
|
||||||
virtual u256 txCount(Address _a) override { return std::get<1>(addresses[_a]); }
|
virtual u256 txCount(Address _a) override { return std::get<1>(addresses[_a]); }
|
||||||
|
Loading…
Reference in New Issue
Block a user