feat: use alloy Signature type (#10758)

Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
This commit is contained in:
Aurélien
2024-09-23 15:29:48 +02:00
committed by GitHub
parent fba837468c
commit 15aee9b144
30 changed files with 537 additions and 709 deletions

View File

@ -16,6 +16,7 @@ mod dev;
mod op;
mod op_sepolia;
use alloy_primitives::{Parity, Signature, U256};
pub use base::BASE_MAINNET;
pub use base_sepolia::BASE_SEPOLIA;
pub use dev::OP_DEV;
@ -32,6 +33,12 @@ pub struct OpChainSpec {
pub inner: ChainSpec,
}
/// Returns the signature for the optimism deposit transactions, which don't include a
/// signature.
pub fn optimism_deposit_tx_signature() -> Signature {
Signature::new(U256::ZERO, U256::ZERO, Parity::Parity(false))
}
#[cfg(test)]
mod tests {
use alloy_genesis::Genesis;