Change EncryptedRequest 'id' field to String (#336)

* change ID field in encrypted request/response to be a string of any kind

* Use JsonId Enum instead of String value
This commit is contained in:
Yeastplume
2020-02-18 12:28:08 +00:00
committed by GitHub
parent b2c973fd0b
commit da064acc33
7 changed files with 183 additions and 75 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ use std::sync::Arc;
use std::{env, fs};
use util::{Mutex, ZeroingString};
use grin_wallet_api::{EncryptedRequest, EncryptedResponse};
use grin_wallet_api::{EncryptedRequest, EncryptedResponse, JsonId};
use grin_wallet_config::{GlobalWalletConfig, WalletConfig, GRIN_WALLET_DIR};
use grin_wallet_impls::{DefaultLCProvider, DefaultWalletImpl};
use grin_wallet_libwallet::{NodeClient, WalletInfo, WalletInst};
@@ -371,7 +371,7 @@ where
#[allow(dead_code)]
pub fn send_request_enc<OUT>(
sec_req_id: u64,
sec_req_id: &JsonId,
internal_request_id: u32,
dest: &str,
req: &str,