Przeglądaj źródła

node: Remove TODO about debugging token ID.

parazyd 4 lat temu
rodzic
commit
35e24d4551
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      src/node/client.rs

+ 6 - 2
src/node/client.rs

@@ -2,6 +2,7 @@ use async_std::sync::{Arc, Mutex};
 use incrementalmerkletree::{bridgetree::BridgeTree, Tree};
 use lazy_init::Lazy;
 use log::{debug, error, info};
+use pasta_curves::group::ff::PrimeField;
 
 use super::state::{state_transition, State};
 use crate::{
@@ -155,8 +156,11 @@ impl Client {
         clear_input: bool,
         state: Arc<Mutex<State>>,
     ) -> ClientResult<Transaction> {
-        // TODO: Token id debug
-        debug!("send(): Sending {}", amount);
+        debug!(
+            "send(): Sending {} {} tokens",
+            amount,
+            bs58::encode(token_id.to_repr()).into_string()
+        );
 
         if amount == 0 {
             return Err(ClientFailed::InvalidAmount(0))