We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06462b0 commit e588143Copy full SHA for e588143
pallets/subtensor/src/tests/staking.rs
@@ -34,15 +34,10 @@ fn test_add_stake_dispatch_info_ok() {
34
netuid,
35
amount_staked,
36
});
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
- );
+ let di = call.get_dispatch_info();
+ assert_eq!(di.extension_weight, frame_support::weights::Weight::zero(),);
+ assert_eq!(di.class, DispatchClass::Normal,);
+ assert_eq!(di.pays_fee, Pays::Yes,);
46
47
}
48
#[test]
0 commit comments