Introduce WeightToFee trait instead of WeightToFeePolynomial and make WeightToFeePolynomial implement it instead (#11415)

* Introduce `WeightToFee` trait instead of `WeightToFeePolynomial` and make `WeightToFeePolynomial` implement it instead

* Rename `WeightToFee::calc()` to `WeightToFee::wight_to_fee()`

* Fix typo
This commit is contained in:
Nazar Mokrynskyi
2022-05-25 08:32:11 +03:00
committed by GitHub
parent 29474f9893
commit 0c25a2ee40
9 changed files with 86 additions and 112 deletions
-2
View File
@@ -5134,7 +5134,6 @@ dependencies = [
"scale-info",
"serde",
"serde_json",
"smallvec",
"sp-core",
"sp-io",
"sp-runtime",
@@ -6285,7 +6284,6 @@ dependencies = [
"scale-info",
"serde",
"serde_json",
"smallvec",
"sp-core",
"sp-io",
"sp-runtime",