Skip to content

Commit d772954

Browse files
author
opendansor
committed
u64 -> u16 for proportion
1 parent 9635b60 commit d772954

File tree

6 files changed

+74
-413
lines changed

6 files changed

+74
-413
lines changed

pallets/subtensor/src/benchmarks.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ reveal_weights {
452452
assert_ok!(Subtensor::<T>::do_burned_registration(RawOrigin::Signed(coldkey.clone()).into(), netuid, hotkey.clone()));
453453

454454
// Set proportion
455-
let proportion: u64 = 500;
455+
let proportion: u16 = 500;
456456

457457
}: set_child_singular(RawOrigin::Signed(coldkey.clone()), hotkey.clone(), child.clone(), netuid, proportion)
458458

@@ -485,7 +485,7 @@ reveal_weights {
485485
assert_ok!(Subtensor::<T>::do_burned_registration(RawOrigin::Signed(coldkey.clone()).into(), netuid, hotkey.clone()));
486486

487487
// Set child
488-
let proportion: u64 = 500;
488+
let proportion: u16 = 500;
489489
assert_ok!(Subtensor::<T>::do_set_child_singular(RawOrigin::Signed(coldkey.clone()).into(), hotkey.clone(), child.clone(), netuid, proportion));
490490

491491
}: revoke_child_singular(RawOrigin::Signed(coldkey.clone()), hotkey.clone(), child.clone(), netuid)

0 commit comments

Comments
 (0)