File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
crates/op-rbuilder/src/builders Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -293,10 +293,5 @@ pub(crate) fn get_nonce(
293293}
294294
295295pub ( crate ) fn log_exists ( logs : & [ Log ] , topic : & B256 ) -> bool {
296- for log in logs {
297- if log. topics ( ) . first ( ) == Some ( topic) {
298- return true ;
299- }
300- }
301- false
296+ logs. iter ( ) . any ( |log| log. topics ( ) . first ( ) == Some ( topic) )
302297}
Original file line number Diff line number Diff line change 5353pub ( super ) enum FlashblockNumberError {
5454 #[ error( "flashblocks number contract tx reverted: {0:?}" ) ]
5555 Revert ( IFlashblockNumber :: IFlashblockNumberErrors ) ,
56- #[ error( "contract may be invalid, mismatch in log emitted: expected {0:?} but got {1:?} " ) ]
57- LogMismatch ( B256 , Option < B256 > ) ,
56+ #[ error( "contract may be invalid, mismatch in log emitted: expected {0:?}" ) ]
57+ LogMismatch ( B256 ) ,
5858 #[ error( "unknown revert: {0} err: {1}" ) ]
5959 Unknown ( String , Error ) ,
6060 #[ error( "halt: {0:?}" ) ]
@@ -175,7 +175,6 @@ impl FlashblocksNumberBuilderTx {
175175 Err ( BuilderTransactionError :: Other ( Box :: new (
176176 FlashblockNumberError :: LogMismatch (
177177 IFlashblockNumber :: FlashblockIncremented :: SIGNATURE_HASH ,
178- logs. first ( ) . and_then ( |log| log. topics ( ) . first ( ) . copied ( ) ) ,
179178 ) ,
180179 ) ) )
181180 }
You can’t perform that action at this time.
0 commit comments