Skip to content

Commit 6499f4f

Browse files
committed
Add permit functions for flashblocks number contract
1 parent 75e520c commit 6499f4f

File tree

10 files changed

+366
-129
lines changed

10 files changed

+366
-129
lines changed

crates/op-rbuilder/src/args/op.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,15 @@ pub struct FlashblocksArgs {
166166
env = "FLASHBLOCK_NUMBER_CONTRACT_ADDRESS"
167167
)]
168168
pub flashblocks_number_contract_address: Option<Address>,
169+
170+
/// Use permit signatures if flashtestations is enabled with the flashtestation key
171+
/// to increment the flashblocks number
172+
#[arg(
173+
long = "flashblocks.number-contract-use-permit",
174+
env = "FLASHBLOCK_NUMBER_CONTRACT_USE_PERMIT",
175+
default_value = "false"
176+
)]
177+
pub flashblocks_number_contract_use_permit: bool,
169178
}
170179

171180
impl Default for FlashblocksArgs {

crates/op-rbuilder/src/builders/builder_tx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl From<BuilderTransactionError> for PayloadBuilderError {
114114
BuilderTransactionError::EvmExecutionError(e) => {
115115
PayloadBuilderError::EvmExecutionError(e)
116116
}
117-
_ => PayloadBuilderError::Other(Box::new(error)),
117+
_ => PayloadBuilderError::other(error),
118118
}
119119
}
120120
}

0 commit comments

Comments
 (0)