From f759c6b4da459ae2544c6cb5b0e19e4367fef57f Mon Sep 17 00:00:00 2001 From: alpaylan Date: Fri, 16 Apr 2021 03:54:29 +0300 Subject: work on post auth transaction 201 test --- src/handlers.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/handlers.rs b/src/handlers.rs index 88f9a80..b7b1007 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -608,9 +608,11 @@ pub async fn authorized_propose_transaction( // it has been changed since let hashed_transaction = Md5::digest(&serde_json::to_vec(&new_transaction).unwrap()); - + println!("{:?}", new_transaction); + println!("{:?}", &serde_json::to_vec(&new_transaction).unwrap()); + println!("{:x}", hashed_transaction); if token_payload.claims.tha != format!("{:x}", hashed_transaction) { - debug!( + println!( "the hash of the request {:x} did not match the hash given in jwt {:?}", hashed_transaction, token_payload.claims.tha ); -- cgit v1.2.3-70-g09d2