@@ -500,7 +500,7 @@ mod tests {
500
500
use core:: str:: FromStr ;
501
501
use k256:: ecdsa:: SigningKey ;
502
502
use stylus_sdk:: alloy_primitives:: keccak256;
503
-
503
+
504
504
#[ cfg( test) ]
505
505
use base64:: engine:: general_purpose;
506
506
#[ cfg( test) ]
@@ -543,7 +543,7 @@ mod tests {
543
543
0x39 , 0x3a , 0x3b , 0x3c , 0x3d , 0x3e , 0x3f , 0x40 ,
544
544
]
545
545
}
546
-
546
+
547
547
#[ cfg( test) ]
548
548
fn current_guardians ( ) -> Vec < Address > {
549
549
vec ! [
@@ -634,7 +634,7 @@ mod tests {
634
634
contract. initialize ( guardians, 1 , CHAIN_ID , GOVERNANCE_CHAIN_ID , governance_contract) . unwrap ( ) ;
635
635
contract
636
636
}
637
-
637
+
638
638
#[ cfg( test) ]
639
639
fn deploy_with_current_mainnet_guardians ( ) -> WormholeContract {
640
640
let mut contract = WormholeContract :: default ( ) ;
@@ -802,7 +802,7 @@ mod tests {
802
802
#[ motsu:: test]
803
803
fn test_verification_multiple_guardian_sets ( ) {
804
804
let mut contract = deploy_with_current_mainnet_guardians ( ) ;
805
-
805
+
806
806
let store_result = contract. store_gs ( 4 , current_guardians ( ) , 0 ) ;
807
807
if let Err ( _) = store_result {
808
808
panic ! ( "Error deploying multiple guardian sets" ) ;
@@ -816,7 +816,7 @@ mod tests {
816
816
#[ motsu:: test]
817
817
fn test_verification_incorrect_guardian_set ( ) {
818
818
let mut contract = deploy_with_current_mainnet_guardians ( ) ;
819
-
819
+
820
820
let store_result = contract. store_gs ( 4 , mock_guardian_set13 ( ) , 0 ) ;
821
821
if let Err ( _) = store_result {
822
822
panic ! ( "Error deploying guardian set" ) ;
@@ -1147,7 +1147,7 @@ mod tests {
1147
1147
let mut contract = WormholeContract :: default ( ) ;
1148
1148
let guardians = current_guardians ( ) ;
1149
1149
let governance_contract = Address :: from_slice ( & GOVERNANCE_CONTRACT . to_be_bytes :: < 32 > ( ) [ 12 ..32 ] ) ;
1150
-
1150
+
1151
1151
let result = contract. initialize ( guardians. clone ( ) , 4 , CHAIN_ID , GOVERNANCE_CHAIN_ID , governance_contract) ;
1152
1152
assert ! ( result. is_ok( ) , "Contract initialization should succeed" ) ;
1153
1153
}
@@ -1222,5 +1222,5 @@ mod tests {
1222
1222
assert ! ( result2. is_ok( ) ) ;
1223
1223
}
1224
1224
1225
-
1226
- }
1225
+
1226
+ }
0 commit comments