Ver Fonte

node: Remove TODO about debugging token ID.

parazyd há 4 anos atrás
pai
commit
35e24d4551
1 ficheiros alterados com 6 adições e 2 exclusões
  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 incrementalmerkletree::{bridgetree::BridgeTree, Tree};
 use lazy_init::Lazy;
 use lazy_init::Lazy;
 use log::{debug, error, info};
 use log::{debug, error, info};
+use pasta_curves::group::ff::PrimeField;
 
 
 use super::state::{state_transition, State};
 use super::state::{state_transition, State};
 use crate::{
 use crate::{
@@ -155,8 +156,11 @@ impl Client {
         clear_input: bool,
         clear_input: bool,
         state: Arc<Mutex<State>>,
         state: Arc<Mutex<State>>,
     ) -> ClientResult<Transaction> {
     ) -> 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 {
         if amount == 0 {
             return Err(ClientFailed::InvalidAmount(0))
             return Err(ClientFailed::InvalidAmount(0))