Skip to content

Commit b75342d

Browse files
authored
avoid add base cost twice (#2611)
1 parent 8853822 commit b75342d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

runtime/common/src/precompile/liquid_crowdloan.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,11 @@ where
124124
let read_account = InputPricer::<Runtime>::read_accounts(1);
125125
let weight = <Runtime as module_liquid_crowdloan::Config>::WeightInfo::redeem();
126126

127-
Self::BASE_COST
128-
.saturating_add(read_account)
129-
.saturating_add(WeightToGas::convert(weight))
127+
read_account.saturating_add(WeightToGas::convert(weight))
130128
}
131129
Action::GetRedeemCurrency => {
132130
let weight = <Runtime as frame_system::Config>::DbWeight::get().reads(1);
133-
134-
Self::BASE_COST.saturating_add(WeightToGas::convert(weight))
131+
WeightToGas::convert(weight)
135132
}
136133
};
137134
Ok(Self::BASE_COST.saturating_add(cost))

0 commit comments

Comments
 (0)