Format withdraw txid correctly
@@ -42,7 +42,7 @@ pub fn withdraw(path: Path<(Address, u64)>) -> Box<dyn Future<Item = HttpRespons
match result {
Ok(tx_id) => Box::new(future::ok({
SETTING.get_payment_mut().nonce += 1u64.into();
- HttpResponse::Ok().json(format!("txid:{}", tx_id))
+ HttpResponse::Ok().json(format!("txid:{:#066x}", tx_id))
})),
Err(e) => Box::new(future::ok(
HttpResponse::new(StatusCode::from_u16(504u16).unwrap())
