diff options
author | Dimitry <winsvega@mail.ru> | 2017-01-28 00:31:19 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2017-01-28 00:31:19 +0800 |
commit | ea7e06b2970a01cd11b3a062425f5c5cafc19ee7 (patch) | |
tree | 82f0dad0a0c0c37591e8c8d542710b8d909f086d /RPCTests/scripts/testNewAccount.js | |
parent | bc8ad7422d32a940bab194173083a684adcc2706 (diff) | |
download | dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.gz dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.bz2 dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.lz dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.xz dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.tar.zst dexon-tests-ea7e06b2970a01cd11b3a062425f5c5cafc19ee7.zip |
rpc tests on js
Diffstat (limited to 'RPCTests/scripts/testNewAccount.js')
-rw-r--r-- | RPCTests/scripts/testNewAccount.js | 12 |
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); +} |