mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 12:11:02 +00:00
fixed TODOs for weights v2 (#1860)
This commit is contained in:
committed by
Bastian Köcher
parent
795a049937
commit
a5a3f8065f
@@ -374,7 +374,7 @@ impl MessageDispatch<AccountId> for TestMessageDispatch {
|
||||
fn dispatch_weight(message: &mut DispatchMessage<TestPayload>) -> Weight {
|
||||
match message.data.payload.as_ref() {
|
||||
Ok(payload) => payload.declared_weight,
|
||||
Err(_) => Weight::from_ref_time(0),
|
||||
Err(_) => Weight::zero(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user