summaryrefslogtreecommitdiff
path: root/impls/monero.rs/src/main.rs
diff options
context:
space:
mode:
authorsneurlax <sneurlax@gmail.com>2024-10-12 02:25:46 -0500
committersneurlax <sneurlax@gmail.com>2024-10-12 02:25:46 -0500
commita046d9002345918bc39dd53c8b13885b2db84263 (patch)
tree32e6d5537d43b41eae29c24d01f26537107b9c0f /impls/monero.rs/src/main.rs
parentdc103c890cc1752f246fef3f8e472bc852ddd487 (diff)
replace main.rs demo with integration tests
TODO unit and docs tests
Diffstat (limited to 'impls/monero.rs/src/main.rs')
-rw-r--r--impls/monero.rs/src/main.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/impls/monero.rs/src/main.rs b/impls/monero.rs/src/main.rs
deleted file mode 100644
index 099c6d4..0000000
--- a/impls/monero.rs/src/main.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-use monero_rust::{network, WalletError, WalletManager};
-
-fn main() -> Result<(), WalletError> {
- let wallet_manager = WalletManager::new(None)?;
-
- let wallet = wallet_manager.create_wallet(
- "wallet_name",
- "password",
- "English",
- network::MAINNET,
- )?;
-
- println!("Wallet created successfully.");
-
- match wallet.get_seed("") {
- Ok(seed) => println!("Seed: {}", seed),
- Err(e) => eprintln!("Failed to get seed: {:?}", e),
- }
-
- match wallet.get_address(0, 0) {
- Ok(address) => println!("Primary address: {}", address),
- Err(e) => eprintln!("Failed to get address: {:?}", e),
- }
-
- Ok(())
-}