|
|
@@ -504,7 +504,7 @@ impl Darkfid {
|
|
|
let req = jsonreq(json!("features"), json!([]));
|
|
|
let rep: JsonResult =
|
|
|
// NOTE: this just selects the first cashier in the list
|
|
|
- match send_request(&self.cashiers[0].rpc_url, json!(req)).await {
|
|
|
+ match send_request(&self.cashiers[0].rpc_url, json!(req), None).await {
|
|
|
Ok(v) => v,
|
|
|
Err(e) => return JsonResult::Err(jsonerr(ServerError(-32004), Some(e.to_string()), id)),
|
|
|
};
|
|
|
@@ -569,7 +569,8 @@ impl Darkfid {
|
|
|
// (and token), it shall return a valid address where tokens can be deposited.
|
|
|
// If not, an error is returned, and forwarded to the method caller.
|
|
|
let req = jsonreq(json!("deposit"), json!([network, token_id, pubkey]));
|
|
|
- let rep: JsonResult = match send_request(&self.cashiers[0].rpc_url, json!(req)).await {
|
|
|
+ let rep: JsonResult = match send_request(&self.cashiers[0].rpc_url, json!(req), None).await
|
|
|
+ {
|
|
|
Ok(v) => v,
|
|
|
Err(e) => {
|
|
|
debug!(target: "DARKFID", "REQUEST IS ERR");
|
|
|
@@ -646,7 +647,9 @@ impl Darkfid {
|
|
|
};
|
|
|
|
|
|
let req = jsonreq(json!("withdraw"), json!([network, token_id, address, amount_in_apo]));
|
|
|
- let mut rep: JsonResult = match send_request(&self.cashiers[0].rpc_url, json!(req)).await {
|
|
|
+ let mut rep: JsonResult = match send_request(&self.cashiers[0].rpc_url, json!(req), None)
|
|
|
+ .await
|
|
|
+ {
|
|
|
Ok(v) => v,
|
|
|
Err(e) => return JsonResult::Err(jsonerr(ServerError(-32004), Some(e.to_string()), id)),
|
|
|
};
|