switch wallet creation from constructors to static utilities

This commit is contained in:
woodser
2019-07-26 16:49:29 -04:00
parent 60dd56fbae
commit 1bef735e8e
4 changed files with 69 additions and 47 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ int main(int argc, const char* argv[]) {
// load wallet
MoneroWallet* wallet = new MoneroWallet("../../test_wallets/test_wallet_1", "supersecretpassword123", MoneroNetworkType::STAGENET);
MoneroWallet* wallet = MoneroWallet::openWallet("../../test_wallets/test_wallet_1", "supersecretpassword123", MoneroNetworkType::STAGENET);
wallet->setDaemonConnection("http://localhost:38081", "", "");
// fetch txs