mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Always create the correct account even if gaps are needed
This commit is contained in:
parent
81e9c679c4
commit
faa0a662c7
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user