aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-20 19:44:52 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-20 21:23:37 +0800
commitfaa0a662c740a0d0d26d58e0e19bb4b887d642a5 (patch)
tree2ad73bf1c54776d2e68c1270b899810d09f60dc6 /test/RPCSession.cpp
parent81e9c679c4d2d10a2ac2a7d82e25d5e9691c2b45 (diff)
downloaddexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar.gz
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar.bz2
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar.lz
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar.xz
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.tar.zst
dexon-solidity-faa0a662c740a0d0d26d58e0e19bb4b887d642a5.zip
Always create the correct account even if gaps are needed
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r--test/RPCSession.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index b99c1c06..c06c3997 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -348,7 +348,7 @@ string const& RPCSession::accountCreate()
string const& RPCSession::accountCreateIfNotExists(size_t _id)
{
- if (_id >= m_accounts.size())
+ while ((_id + 1) > m_accounts.size())
accountCreate();
return m_accounts[_id];
}