Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix: misused max_priority_fee_per_gas and max_fee_per_gas
Browse files Browse the repository at this point in the history
  • Loading branch information
dyxushuai authored Aug 8, 2023
1 parent d93d602 commit ce98a4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eth-types/src/geth_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ impl From<&Transaction> for crate::Transaction {
gas: tx.gas_limit.to_word(),
value: tx.value,
gas_price: Some(tx.gas_price),
max_priority_fee_per_gas: Some(tx.gas_fee_cap),
max_fee_per_gas: Some(tx.gas_tip_cap),
max_priority_fee_per_gas: Some(tx.gas_tip_cap),
max_fee_per_gas: Some(tx.gas_cap_cap),

Check failure on line 184 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Linux Build

no field `gas_cap_cap` on type `&geth_types::Transaction`

Check failure on line 184 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Various lints

no field `gas_cap_cap` on type `&geth_types::Transaction`

Check failure on line 184 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Light unit tests

no field `gas_cap_cap` on type `&geth_types::Transaction`

Check failure on line 184 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Heavy unit tests

no field `gas_cap_cap` on type `&geth_types::Transaction`
input: tx.call_data.clone(),
access_list: tx.access_list.clone(),
v: tx.v.into(),
Expand All @@ -201,8 +201,8 @@ impl From<&crate::Transaction> for Transaction {
gas_limit: tx.gas.as_u64().into(),
value: tx.value,
gas_price: tx.gas_price.unwrap_or_default(),
gas_fee_cap: tx.max_priority_fee_per_gas.unwrap_or_default(),
gas_tip_cap: tx.max_fee_per_gas.unwrap_or_default(),
gas_tip_cap: tx.max_priority_fee_per_gas.unwrap_or_default(),
gas_cap_cap: tx.max_fee_per_gas.unwrap_or_default(),

Check failure on line 205 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Linux Build

struct `geth_types::Transaction` has no field named `gas_cap_cap`

Check failure on line 205 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Various lints

struct `geth_types::Transaction` has no field named `gas_cap_cap`

Check failure on line 205 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Light unit tests

struct `geth_types::Transaction` has no field named `gas_cap_cap`

Check failure on line 205 in eth-types/src/geth_types.rs

View workflow job for this annotation

GitHub Actions / Heavy unit tests

struct `geth_types::Transaction` has no field named `gas_cap_cap`
call_data: tx.input.clone(),
access_list: tx.access_list.clone(),
v: tx.v.as_u64(),
Expand Down

0 comments on commit ce98a4e

Please sign in to comment.