diff --git a/tapyrus-wallet-ffi/src/lib.rs b/tapyrus-wallet-ffi/src/lib.rs index 9e5443e..1871503 100644 --- a/tapyrus-wallet-ffi/src/lib.rs +++ b/tapyrus-wallet-ffi/src/lib.rs @@ -1548,12 +1548,18 @@ mod test { let wallet = get_wallet(); let message = "message".to_string(); let GetNewAddressResult { public_key, .. } = wallet.get_new_address(None).unwrap(); - let sig = wallet.sign_message(public_key.clone(), message.clone()).unwrap(); + let sig = wallet + .sign_message(public_key.clone(), message.clone()) + .unwrap(); - assert!(wallet.verify_sign(public_key.clone(), message.clone(), sig.clone()).unwrap()); + assert!(wallet + .verify_sign(public_key.clone(), message.clone(), sig.clone()) + .unwrap()); let message = "another message".to_string(); - assert!(!wallet.verify_sign(public_key.clone(), message.clone(), sig.clone()).unwrap()); + assert!(!wallet + .verify_sign(public_key.clone(), message.clone(), sig.clone()) + .unwrap()); } #[test]