Unverified Commit f34d8e3c authored by Tin Chung's avatar Tin Chung Committed by GitHub
Browse files

Remove hard-coded indices from pallet-xcm tests (#4248)

# ISSUE
- Link to issue: https://github.com/paritytech/polkadot-sdk/issues/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: default avatarOliver Tale-Yazdi <[email protected]>
parent 92a348f5
Pipeline #470545 failed with stages
in 1 hour, 11 minutes, and 19 seconds
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