Commit 2a8ca4ce authored by Deepanshu Hooda's avatar Deepanshu Hooda Committed by GitHub
Browse files

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: default avatarOliver 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: default avatarOliver Tale-Yazdi <[email protected]>

* chore: assert statement to ensure

* Fix tests

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Use ensure instead of assert

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Fix function signature and feature gate

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

* Cleanup code

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>

---------

Signed-off-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
Co-authored-by: default avatarJuan <[email protected]>
parent e8ad7482
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment