From 887356d25343b35f9e3d83230f633a73b70030fc Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 7 Apr 2020 14:03:44 -0400 Subject: [PATCH] update sample code --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 04d1024..713dace 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ Note: This API might change depending on feedback, such as changing structs to c // create a wallet from a mnemonic phrase string mnemonic = "hefty value later extra artistic firm radar yodel talent future fungal nutshell because sanity awesome nail unjustly rage unafraid cedar delayed thumbs comb custom sanity"; monero_wallet* wallet_restored = monero_wallet_core::create_wallet_from_mnemonic( - "MyWalletRestored", // wallet path and name - "supersecretpassword123", // wallet password - monero_network_type::STAGENET, // network type - mnemonic, // mnemonic phrase - monero_rpc_connection("http://localhost:38081"), // daemon connection - 380104, // restore height - "" // seed offset + "MyWalletRestored", // wallet path and name + "supersecretpassword123", // wallet password + monero_network_type::STAGENET, // network type + mnemonic, // mnemonic phrase + monero_rpc_connection(string("http://localhost:38081")), // daemon connection + 380104, // restore height + "" // seed offset ); // synchronize the wallet and receive progress notifications @@ -75,10 +75,10 @@ vector> outputs = wallet_restored->get_outputs( // create and sync a new wallet with a random mnemonic phrase monero_wallet* wallet_random = monero_wallet_core::create_wallet_random( - "MyWalletRandom", // wallet path and name - "supersecretpassword123", // wallet password - monero_network_type::STAGENET, // network type - monero_rpc_connection("http://localhost:38081"), // daemon connection + "MyWalletRandom", // wallet path and name + "supersecretpassword123", // wallet password + monero_network_type::STAGENET, // network type + monero_rpc_connection(string("http://localhost:38081")), // daemon connection "English" ); wallet_random->sync();