Skip to content

Commit

Permalink
fix typo, mark a test for test only
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Sep 25, 2023
1 parent 700473e commit 634228f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cost-model/src/transaction_cost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl PartialEq for UsageCostDetails {
impl Eq for UsageCostDetails {}

impl UsageCostDetails {
#[cfg(test)]
pub fn new_with_capacity(capacity: usize) -> Self {
Self {
writable_accounts: Vec::with_capacity(capacity),
Expand Down Expand Up @@ -210,7 +211,7 @@ mod tests {
)
.unwrap();

// expected vote tx cost: 2 write locks, 2 sig, 1 vite ix,
// expected vote tx cost: 2 write locks, 2 sig, 1 vote ix,
let expected_vote_cost = 4140;
// expected non-vote tx cost would include default loaded accounts size cost (16384) additionally
let expected_none_vote_cost = 20535;
Expand Down

0 comments on commit 634228f

Please sign in to comment.