Skip to content

Commit

Permalink
delete default gas calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Mar 8, 2023
1 parent 2cf2510 commit 87a6970
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions x/gashub/types/gas_calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,7 @@ func RegisterCalculatorGen(msgType string, feeCalcGen GasCalculatorGenerator) {
}

func GetGasCalculatorGen(msgType string) GasCalculatorGenerator {
res, ok := calculatorsGen[msgType]
// todo: this is a temporary default fee, remove this after all msg types are registered
if !ok {
res = func(params Params) GasCalculator {
return FixedGasCalculator(1e5)
}
}
return res
return calculatorsGen[msgType]
}

func FixedGasCalculator(amount uint64) GasCalculator {
Expand Down

0 comments on commit 87a6970

Please sign in to comment.