Skip to content

Commit

Permalink
NDEV-3266. Set gas_price in Transaction from TxParams (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ancientmage authored Sep 9, 2024
1 parent 7687e26 commit dc69982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm_loader/lib/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl TxParams {
} else {
let access_list_tx = AccessListTx {
nonce,
gas_price: U256::ZERO,
gas_price: self.gas_price.unwrap_or(U256::ZERO),
gas_limit: self.gas_limit.unwrap_or(U256::MAX),
target: self.to,
value: self.value.unwrap_or_default(),
Expand All @@ -174,7 +174,7 @@ impl TxParams {
} else {
let legacy_tx = LegacyTx {
nonce,
gas_price: U256::ZERO,
gas_price: self.gas_price.unwrap_or(U256::ZERO),
gas_limit: self.gas_limit.unwrap_or(U256::MAX),
target: self.to,
value: self.value.unwrap_or_default(),
Expand Down

0 comments on commit dc69982

Please sign in to comment.