Add `try_state` check to Pallet `MessageQueue` (#13502)
* feat: Add try_state for message_queue * Update frame/message-queue/src/lib.rs change if let to while let and modify bump_service_head function Co-authored-by: Oliver Tale-Yazdi <[email protected]> * feat: update try_state, add checks for storage * fix: add try_state builder for remaining tests * Update frame/message-queue/src/mock.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * chore: assert statement to ensure * Fix tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use ensure instead of assert Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix function signature and feature gate Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Cleanup code Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Juan <[email protected]>
parent
e8ad7482
Please register or sign in to comment