From fe5c24ac62d37bb339f99cbc65b3d4f5bcad1b53 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Fri, 18 Mar 2016 22:35:03 -0500 Subject: [PATCH] Fixing qt test with hidden adhoc keys. --- rai/qt_test/qt.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rai/qt_test/qt.cpp b/rai/qt_test/qt.cpp index bfcc7a25d9..336a5d97b4 100644 --- a/rai/qt_test/qt.cpp +++ b/rai/qt_test/qt.cpp @@ -14,13 +14,12 @@ TEST (wallet, construction) { rai::system system (24000, 1); auto wallet_l (system.nodes [0]->wallets.create (rai::uint256_union ())); - rai::keypair key; - wallet_l->insert_adhoc (key.prv); - rai_qt::wallet wallet (*test_application, *system.nodes [0], wallet_l, key.pub); - ASSERT_EQ (key.pub.to_account_split (), wallet.self.account_text->text ().toStdString ()); + auto key (wallet_l->deterministic_insert ()); + rai_qt::wallet wallet (*test_application, *system.nodes [0], wallet_l, key); + ASSERT_EQ (key.to_account_split (), wallet.self.account_text->text ().toStdString ()); ASSERT_EQ (1, wallet.accounts.model->rowCount ()); auto item1 (wallet.accounts.model->item (0, 1)); - ASSERT_EQ (key.pub.to_account (), item1->text ().toStdString ()); + ASSERT_EQ (key.to_account (), item1->text ().toStdString ()); } TEST (wallet, status)