New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove hard-coded indices from pallet-xcm tests #4248
Remove hard-coded indices from pallet-xcm tests #4248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks better now.
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
The CI pipeline was cancelled due to failure one of the required jobs. |
…thub.com/openguild-labs/polkadot-sdk into chungquantin/pallet_xcm_hard_coded_error
bot fmt |
@acatangiu https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6054776 was started for your command Comment |
@acatangiu Command |
@chungquantin the bot is not allowed to push to your fork, you'll have to |
Or you could simply manually make the change suggested by CI here: https://github.com/paritytech/polkadot-sdk/actions/runs/8827160816/job/24233986818?pr=4248 |
f34d8e3
# ISSUE - Link to issue: #4237 # DESCRIPTION Remove all ModuleError with hard-coded indices to pallet Error. For example: ```rs Err(DispatchError::Module(ModuleError { index: 4, error: [2, 0, 0, 0], message: Some("Filtered") })) ``` To ```rs let expected_result = Err(crate::Error::<Test>::Filtered.into()); assert_eq!(result, expected_result); ``` # TEST OUTCOME ``` test result: ok. 74 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s ``` --------- Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
ISSUE
DESCRIPTION
Remove all ModuleError with hard-coded indices to pallet Error. For example:
To
TEST OUTCOME