aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-03-01 18:32:29 +0800
committerchriseth <c@ethdev.com>2017-03-01 18:32:29 +0800
commit9f1a67caa5f532e8221b64225abd0b313afca097 (patch)
tree2e2472784dbecf16e8f9ac9ea7c321b2043ad1ca /test/RPCSession.cpp
parent4305ecb0e7bca7f64324e0804df9543c4775aa6f (diff)
downloaddexon-solidity-9f1a67caa5f532e8221b64225abd0b313afca097.tar.gz
dexon-solidity-9f1a67caa5f532e8221b64225abd0b313afca097.tar.zst
dexon-solidity-9f1a67caa5f532e8221b64225abd0b313afca097.zip
Some logging around account creation.
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r--test/RPCSession.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index 57829ff5..a71ff286 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -197,12 +197,17 @@ string RPCSession::eth_getStorageRoot(string const& _address, string const& _blo
void RPCSession::personal_unlockAccount(string const& _address, string const& _password, int _duration)
{
- BOOST_REQUIRE(rpcCall("personal_unlockAccount", { quote(_address), quote(_password), to_string(_duration) }) == true);
+ BOOST_REQUIRE_MESSAGE(
+ rpcCall("personal_unlockAccount", { quote(_address), quote(_password), to_string(_duration) }),
+ "Error unlocking account " + _address
+ );
}
string RPCSession::personal_newAccount(string const& _password)
{
- return rpcCall("personal_newAccount", { quote(_password) }).asString();
+ string addr = rpcCall("personal_newAccount", { quote(_password) }).asString();
+ BOOST_MESSAGE("Created account " + addr);
+ return addr;
}
void RPCSession::test_setChainParams(vector<string> const& _accounts)