diff options
| author | Jonas Schnelli <[email protected]> | 2015-05-10 14:48:35 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-06-04 09:16:05 +0200 |
| commit | 6c7bee062437acbc078533fdcf8e53794031bf99 (patch) | |
| tree | 9af2921524e39c6c25df31fba9d1dd55e03ba04b /src/test/rpc_tests.cpp | |
| parent | extend conversion to UniValue (diff) | |
| download | discoin-6c7bee062437acbc078533fdcf8e53794031bf99.tar.xz discoin-6c7bee062437acbc078533fdcf8e53794031bf99.zip | |
expicit set UniValue type to avoid empty values
Diffstat (limited to 'src/test/rpc_tests.cpp')
| -rw-r--r-- | src/test/rpc_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index fea826b65..cbbecf08e 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -19,9 +19,9 @@ using namespace json_spirit; Array createArgs(int nRequired, const char* address1=NULL, const char* address2=NULL) { - Array result; + UniValue result(UniValue::VARR); result.push_back(nRequired); - Array addresses; + UniValue addresses(UniValue::VARR); if (address1) addresses.push_back(address1); if (address2) addresses.push_back(address2); result.push_back(addresses); |