Skip to content

Commit

Permalink
Merge pull request opentensor#74 from opentensor/fix_fees
Browse files Browse the repository at this point in the history
Added test finney specs and fixed tx fees
  • Loading branch information
shibshib authored Mar 22, 2023
2 parents 3543260 + 0984483 commit c2e93d9
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 3 deletions.
77 changes: 77 additions & 0 deletions plain_spec_testfinney.json

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions raw_spec_testfinney.json

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions raw_testspec.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// `spec_version`, and `authoring_version` are the same between Wasm and native.
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
// the compatible custom types.
spec_version: 108,
spec_version: 109,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -274,8 +274,8 @@ where

fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
let coefficient = WeightToFeeCoefficient {
coeff_integer: C::get(),
coeff_frac: Perbill::from_percent(1),
coeff_integer: 0,
coeff_frac: Perbill::from_parts(1),
negative: false,
degree: 1,
};
Expand Down

0 comments on commit c2e93d9

Please sign in to comment.