mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 20:21:03 +00:00
Small fixes (#2126)
This commit is contained in:
committed by
Bastian Köcher
parent
d80d2a5039
commit
d479232c34
@@ -171,8 +171,7 @@ impl<S: InboundLaneStorage> InboundLane<S> {
|
||||
message_data: DispatchMessageData<Dispatch::DispatchPayload>,
|
||||
) -> ReceivalResult<Dispatch::DispatchLevelResult> {
|
||||
let mut data = self.storage.get_or_init_data();
|
||||
let is_correct_message = nonce == data.last_delivered_nonce() + 1;
|
||||
if !is_correct_message {
|
||||
if Some(nonce) != data.last_delivered_nonce().checked_add(1) {
|
||||
return ReceivalResult::InvalidNonce
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user