Skip to content

Commit d98e360

Browse files
committed
chore: fix typo in the GasFloorMoreThanGasLimit error message
1 parent a8a869a commit d98e360

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

evm-tests/src/assertions.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn assert_vicinity_validation(
4646
);
4747
}
4848
}
49-
InvalidTxReason::GasPriceLessThenBlockBaseFee => {
49+
InvalidTxReason::GasPriceLessThanBlockBaseFee => {
5050
for (i, state) in states.iter().enumerate() {
5151
let expected = state.expect_exception.as_deref().unwrap_or_else(|| {
5252
panic!("expected error message for test: {reason:?} [{spec:?}] {name}:{i}\n{file_name:?}")
@@ -76,7 +76,7 @@ pub fn assert_vicinity_validation(
7676
);
7777
}
7878
}
79-
InvalidTxReason::GasPriceLessThenBlockBaseFee => {
79+
InvalidTxReason::GasPriceLessThanBlockBaseFee => {
8080
for (i, state) in states.iter().enumerate() {
8181
let expected = state.expect_exception.as_deref().unwrap_or_else(|| {
8282
panic!("expected error message for test: {reason:?} [{spec:?}] {name}:{i}\n{file_name:?}")
@@ -105,7 +105,7 @@ pub fn assert_vicinity_validation(
105105
);
106106
}
107107
}
108-
InvalidTxReason::GasPriceLessThenBlockBaseFee => {
108+
InvalidTxReason::GasPriceLessThanBlockBaseFee => {
109109
for (i, state) in states.iter().enumerate() {
110110
let expected = state.expect_exception.as_deref().unwrap_or_else(|| {
111111
panic!("expected error message for test: {reason:?} [{spec:?}] {name}:{i}\n{file_name:?}")
@@ -137,7 +137,7 @@ pub fn assert_vicinity_validation(
137137
);
138138
}
139139
}
140-
InvalidTxReason::GasPriceLessThenBlockBaseFee => {
140+
InvalidTxReason::GasPriceLessThanBlockBaseFee => {
141141
for (i, state) in states.iter().enumerate() {
142142
let expected = state.expect_exception.as_deref().unwrap_or_else(|| {
143143
panic!("expected error message for test: {reason:?} [{spec:?}] {name}:{i}\n{file_name:?}")
@@ -171,7 +171,7 @@ pub fn assert_vicinity_validation(
171171
}
172172
}
173173

174-
InvalidTxReason::GasPriceLessThenBlockBaseFee => {
174+
InvalidTxReason::GasPriceLessThanBlockBaseFee => {
175175
for (i, state) in states.iter().enumerate() {
176176
let expected = state.expect_exception.as_deref().unwrap_or_else(|| {
177177
panic!("expected error message for test: {reason:?} [{spec:?}] {name}:{i}\n{file_name:?}")

evm-tests/src/types/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl StateTestCase {
9595

9696
// the gas price cannot be lower than the base fee
9797
if gas_price < block_base_fee_per_gas {
98-
return Err(InvalidTxReason::GasPriceLessThenBlockBaseFee);
98+
return Err(InvalidTxReason::GasPriceLessThanBlockBaseFee);
9999
}
100100

101101
let blob_hashes = tx.blob_versioned_hashes.clone();
@@ -258,7 +258,7 @@ pub enum InvalidTxReason {
258258
OutOfFund,
259259
GasLimitReached,
260260
PriorityFeeTooLarge,
261-
GasPriceLessThenBlockBaseFee,
261+
GasPriceLessThanBlockBaseFee,
262262
BlobCreateTransaction,
263263
BlobVersionNotSupported,
264264
TooManyBlobs,

0 commit comments

Comments
 (0)