Skip to content

Commit e012a99

Browse files
committed
fix(testnet): add code substitute
test(emission0): calculate rational correctly with rounding
1 parent c6e1702 commit e012a99

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

data/testnet/spec.json

Lines changed: 3 additions & 1 deletion
Large diffs are not rendered by default.

pallets/emission0/tests/distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn weights_are_filtered_and_normalized() {
104104
weights,
105105
vec![
106106
(1, FixedU128::from_rational(1, 3)),
107-
(2, FixedU128::from_rational(1, 3) * 2.into())
107+
(2, FixedU128::from_rational(2, 3))
108108
]
109109
)
110110
});

xtask/src/run.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ pub(super) fn run(mut r: flags::Run) {
7878
ops::key_insert_cmd(&path, &chain_spec, &account.suri, "aura");
7979
ops::key_insert_cmd(&path, &chain_spec, &account.suri, "gran");
8080

81+
dbg!(&chain_spec);
82+
8183
let _run = ops::run_node(&path, &chain_spec, &node, &r.bootnodes, r.isolated)
8284
.spawn()
8385
.unwrap()

0 commit comments

Comments
 (0)