Commit 24311eee authored by Falco Hirschenberger's avatar Falco Hirschenberger Committed by GitHub
Browse files

Change assert(is_err()) to assert_noop to check state consistency on errors (#8587)



* Change is_err() asserts in tests to assert_noop to check state consistency

fixes #8545

* Update frame/transaction-payment/src/lib.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* Update frame/contracts/src/exec.rs

Co-authored-by: default avatarShawn Tabrizi <[email protected]>

* Update frame/democracy/src/benchmarking.rs

Co-authored-by: default avatarShawn Tabrizi <[email protected]>

* Update frame/transaction-payment/src/lib.rs

Co-authored-by: default avatarShawn Tabrizi <[email protected]>

* Don't assert no-changing state.

see: https://github.com/paritytech/substrate/pull/8587#issuecomment-817137906



* fix expected error

* Fix non-extrinsic-call asserts

Co-authored-by: default avatarKian Paimani <[email protected]>
Co-authored-by: default avatarShawn Tabrizi <[email protected]>
parent b9ed6e01
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