Skip to content

Commit e588143

Browse files
committed
Fix test_add_stake_dispatch_info_ok
1 parent 06462b0 commit e588143

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

pallets/subtensor/src/tests/staking.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,10 @@ fn test_add_stake_dispatch_info_ok() {
3434
netuid,
3535
amount_staked,
3636
});
37-
assert_eq!(
38-
call.get_dispatch_info(),
39-
DispatchInfo {
40-
call_weight: frame_support::weights::Weight::from_parts(2_495_500_000, 0),
41-
extension_weight: frame_support::weights::Weight::zero(),
42-
class: DispatchClass::Normal,
43-
pays_fee: Pays::Yes
44-
}
45-
);
37+
let di = call.get_dispatch_info();
38+
assert_eq!(di.extension_weight, frame_support::weights::Weight::zero(),);
39+
assert_eq!(di.class, DispatchClass::Normal,);
40+
assert_eq!(di.pays_fee, Pays::Yes,);
4641
});
4742
}
4843
#[test]

0 commit comments

Comments
 (0)