aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-03-03 02:54:16 +0800
committerGav Wood <i@gavwood.com>2015-03-06 19:19:43 +0800
commit3359c6a7889d45ba94ee1fb3c3542147806b0e68 (patch)
tree3d562b05675455a774b6dd47f9041ebc769b2a91
parent25c1498b0443c4f606d12e6eb3f1ee8c22e9cd6d (diff)
downloaddexon-solidity-3359c6a7889d45ba94ee1fb3c3542147806b0e68.tar.gz
dexon-solidity-3359c6a7889d45ba94ee1fb3c3542147806b0e68.tar.zst
dexon-solidity-3359c6a7889d45ba94ee1fb3c3542147806b0e68.zip
Fix FakeExtVM.
-rw-r--r--vm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.h b/vm.h
index 0a5b5fb4..c13a9727 100644
--- a/vm.h
+++ b/vm.h
@@ -50,6 +50,7 @@ public:
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 bool exists(Address _a) override { return !!addresses.count(_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 u256 txCount(Address _a) override { return std::get<1>(addresses[_a]); }