aboutsummaryrefslogtreecommitdiffstats
path: root/RPCTests/scripts/testNewAccount.js
diff options
context:
space:
mode:
Diffstat (limited to 'RPCTests/scripts/testNewAccount.js')
-rw-r--r--RPCTests/scripts/testNewAccount.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/RPCTests/scripts/testNewAccount.js b/RPCTests/scripts/testNewAccount.js
new file mode 100644
index 000000000..ae3224384
--- /dev/null
+++ b/RPCTests/scripts/testNewAccount.js
@@ -0,0 +1,12 @@
+process.stdout.write("TEST_newAccount ");
+var onResult = {};
+web3.personal.newAccount("123", function(err,res){ onResult(err,res); })
+
+onResult = function (err,res)
+{
+ if (res.length == 42)
+ console.log("OK");
+ else
+ console.log("FAILED");
+ callback(err, res);
+}