@@ -139,7 +139,8 @@ export class OwnershipTransferTests extends BaseSecureOwnableTest {
139139 ) || 'wallet1'
140140 ) ;
141141
142- // Simulate transaction first to catch revert reasons (like sanity tests do with estimateGas)
142+ // Simulate transaction first to catch revert reasons (like sanity tests do with estimateGas).
143+ // If the simulation fails, treat it as a warning only and still attempt the live transaction.
143144 try {
144145 console . log ( ' 🔍 Simulating transaction to check for revert reasons...' ) ;
145146 await this . publicClient . simulateContract ( {
@@ -151,11 +152,11 @@ export class OwnershipTransferTests extends BaseSecureOwnableTest {
151152 } ) ;
152153 console . log ( ' ✅ Simulation passed - transaction should succeed' ) ;
153154 } catch ( simError : any ) {
154- console . log ( ` ❌ Simulation failed: ${ simError . message } ` ) ;
155+ console . log ( ` ⚠️ Simulation failed (will continue anyway) : ${ simError . message } ` ) ;
155156 if ( simError . data || simError . reason ) {
156157 console . log ( ` 📋 Revert reason: ${ simError . reason || simError . data } ` ) ;
157158 }
158- throw new Error ( `Transaction simulation failed: ${ simError . message } ` ) ;
159+ // Do not throw here; downstream transaction execution and assertions will determine test outcome.
159160 }
160161
161162 // Request ownership transfer
@@ -599,7 +600,8 @@ export class OwnershipTransferTests extends BaseSecureOwnableTest {
599600 console . log ( ` 📋 Transaction Hash: ${ executeResult . hash } ` ) ;
600601
601602 const receipt = await executeResult . wait ( ) ;
602- const isSuccess = receipt . status === 'success' || receipt . status === 1 ;
603+ const status = receipt . status as any ;
604+ const isSuccess = status === 'success' || status === 1 || String ( status ) === '1' ;
603605 this . assertTest ( isSuccess , `Transaction succeeded (status: ${ receipt . status } )` ) ;
604606
605607 // Verify transaction is cancelled (use recovery wallet which is now owner)
@@ -763,7 +765,8 @@ export class OwnershipTransferTests extends BaseSecureOwnableTest {
763765 console . log ( ` 📋 Transaction Hash: ${ executeResult . hash } ` ) ;
764766
765767 const receipt = await executeResult . wait ( ) ;
766- const isSuccess = receipt . status === 'success' || receipt . status === 1 ;
768+ const metaStatus = receipt . status as any ;
769+ const isSuccess = metaStatus === 'success' || metaStatus === 1 || String ( metaStatus ) === '1' ;
767770 this . assertTest ( isSuccess , `Transaction succeeded (status: ${ receipt . status } )` ) ;
768771
769772 // Verify transaction is completed (use recovery wallet which is now owner after step 5)
0 commit comments