Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 0f58dd8

Browse files
committed
Update test to include Slow fee priority
The test for map_transaction_rate_rates now checks for three fee priorities: Slow, Normal, and Fast, with corresponding gas prices. This reflects an update to the function's output to include the Slow priority.
1 parent 0c2f131 commit 0f58dd8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

crates/gem_sui/src/provider/preload_mapper.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,12 @@ mod tests {
213213
fn test_map_transaction_rate_rates() {
214214
let rates = map_transaction_rate_rates(BigInt::from(497));
215215

216-
assert_eq!(rates.len(), 2);
217-
assert_eq!(rates[0].priority, FeePriority::Normal);
218-
assert_eq!(rates[0].gas_price_type.gas_price(), BigInt::from(546));
219-
assert_eq!(rates[1].priority, FeePriority::Fast);
220-
assert_eq!(rates[1].gas_price_type.gas_price(), BigInt::from(994));
216+
assert_eq!(rates.len(), 3);
217+
assert_eq!(rates[0].priority, FeePriority::Slow);
218+
assert_eq!(rates[0].gas_price_type.gas_price(), BigInt::from(497));
219+
assert_eq!(rates[1].priority, FeePriority::Normal);
220+
assert_eq!(rates[1].gas_price_type.gas_price(), BigInt::from(546));
221+
assert_eq!(rates[2].priority, FeePriority::Fast);
222+
assert_eq!(rates[2].gas_price_type.gas_price(), BigInt::from(994));
221223
}
222224
}

0 commit comments

Comments
 (0)