Skip to content

Commit 54395ed

Browse files
committed
fix(evm): enforce success for anchor transactions in taiko execution
1 parent 2e0f335 commit 54395ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ethereum/evm/src/execute.rs

+3
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ where
300300
// append gas used
301301
cumulative_gas_used += result.gas_used();
302302
if is_taiko {
303+
if is_anchor && !result.is_success() {
304+
return Err(BlockExecutionError::Other("anchor transaction must be success"));
305+
}
303306
let mining_gas_limit = taiko_data.clone().unwrap().gas_limit;
304307
if cumulative_gas_used > mining_gas_limit {
305308
warn!(

0 commit comments

Comments
 (0)