Skip to content

Commit 793af40

Browse files
authored
fix: various eip-7702 rpc fixes (#10590)
1 parent ee9514b commit 793af40

File tree

3 files changed

+5
-5
lines changed
  • crates

3 files changed

+5
-5
lines changed

crates/optimism/rpc/src/eth/call.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ where
6060
chain_id,
6161
blob_versioned_hashes,
6262
max_fee_per_blob_gas,
63-
// authorization_list,
63+
authorization_list,
6464
..
6565
} = request;
6666

@@ -98,7 +98,7 @@ where
9898
// EIP-4844 fields
9999
blob_hashes: blob_versioned_hashes.unwrap_or_default(),
100100
max_fee_per_blob_gas,
101-
authorization_list: Default::default(),
101+
authorization_list: authorization_list.map(Into::into),
102102
optimism: OptimismFields { enveloped_tx: Some(Bytes::new()), ..Default::default() },
103103
};
104104

crates/rpc/rpc-eth-api/src/helpers/call.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ pub trait Call: LoadState + SpawnBlocking {
853853
chain_id,
854854
blob_versioned_hashes,
855855
max_fee_per_blob_gas,
856-
// authorization_list,
856+
authorization_list,
857857
..
858858
} = request;
859859

@@ -892,7 +892,7 @@ pub trait Call: LoadState + SpawnBlocking {
892892
blob_hashes: blob_versioned_hashes.unwrap_or_default(),
893893
max_fee_per_blob_gas,
894894
// EIP-7702 fields
895-
// authorization_list: TODO
895+
authorization_list: authorization_list.map(Into::into),
896896
..Default::default()
897897
};
898898

crates/rpc/rpc-types-compat/src/transaction/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn fill(
4444
#[allow(unreachable_patterns)]
4545
let (gas_price, max_fee_per_gas) = match signed_tx.tx_type() {
4646
TxType::Legacy | TxType::Eip2930 => (Some(signed_tx.max_fee_per_gas()), None),
47-
TxType::Eip1559 | TxType::Eip4844 => {
47+
TxType::Eip1559 | TxType::Eip4844 | TxType::Eip7702 => {
4848
// the gas price field for EIP1559 is set to `min(tip, gasFeeCap - baseFee) +
4949
// baseFee`
5050
let gas_price = tx_info

0 commit comments

Comments
 (0)