From 27993e5a64abbea1cd3a0b40bf941b43a0e478bb Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Sat, 6 May 2023 04:58:46 -0400 Subject: [PATCH] remove address_index from get_address request --- nevmes-core/src/monero.rs | 2 +- nevmes-core/src/reqres.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nevmes-core/src/monero.rs b/nevmes-core/src/monero.rs index 424fd08..50af711 100644 --- a/nevmes-core/src/monero.rs +++ b/nevmes-core/src/monero.rs @@ -405,7 +405,7 @@ pub async fn get_address() -> reqres::XmrRpcAddressResponse { let client = reqwest::Client::new(); let host = get_rpc_host(); let params: reqres::XmrRpcAddressParams = reqres::XmrRpcAddressParams { - account_index: 0, address_index: vec![0], + account_index: 0, }; let req = reqres::XmrRpcAddressRequest { jsonrpc: RpcFields::JsonRpcVersion.value(), diff --git a/nevmes-core/src/reqres.rs b/nevmes-core/src/reqres.rs index a80bb1c..01c0c77 100644 --- a/nevmes-core/src/reqres.rs +++ b/nevmes-core/src/reqres.rs @@ -63,7 +63,6 @@ pub struct XmrRpcBalanceParams { #[derive(Deserialize, Serialize, Debug)] pub struct XmrRpcAddressParams { pub account_index: u8, - pub address_index: Vec, } #[derive(Deserialize, Serialize, Debug)]