Remove mod for tests
@@ -10,10 +10,6 @@ use crate::{
tx::{ChangePubKey, Close, ForcedExit, PackedEthSignature, Transfer, TxSignature, Withdraw},
};
-#[cfg(test)]
-pub mod tests {
- use super::*;
-
// Public data parameters, using them we can restore `ZkSyncOp`.
const NOOP_PUBLIC_DATA: &str = "000000000000000000";
const DEPOSIT_PUBLIC_DATA: &str = "010000002a002a0000000000000000000000000000002a21abaed8712072e918632259780e587698ef58da0000000000000000000000";
@@ -231,8 +227,7 @@ pub mod tests {
#[test]
fn test_eth_witness() {
let mut change_pubkey =
- ChangePubKeyOp::from_public_data(&hex::decode(CHANGE_PUBKEY_PUBLIC_DATA).unwrap())
- .unwrap();
+ ChangePubKeyOp::from_public_data(&hex::decode(CHANGE_PUBKEY_PUBLIC_DATA).unwrap()).unwrap();
change_pubkey.tx.eth_signature = PackedEthSignature::deserialize_packed(
&hex::decode("2a0a81e257a2f5d6ed4f07b81dbda09f107bd026dbda09f107bd026f5d6ed4f02a0a81e257a2f5d6ed4f07b81dbda09f107bd026dbda09f107bd026f5d6ed4f0d4").unwrap(),
@@ -243,4 +238,3 @@ pub mod tests {
"2a0a81e257a2f5d6ed4f07b81dbda09f107bd026dbda09f107bd026f5d6ed4f02a0a81e257a2f5d6ed4f07b81dbda09f107bd026dbda09f107bd026f5d6ed4f0d4"
);
}
-}
