Unverified Commit 02960f98 authored by Michael Müller's avatar Michael Müller
Browse files

Fix `bool_comparison`

parent b19916d2
Pipeline #150442 failed with stages
in 6 minutes and 43 seconds
......@@ -792,7 +792,7 @@ mod erc1155 {
// Note: All of these tests are from the context of the owner who is either allowing or
// disallowing an operator to control their funds.
set_sender(owner);
assert!(erc.is_approved_for_all(owner, operator) == false);
assert!(!erc.is_approved_for_all(owner, operator));
assert!(erc.set_approval_for_all(operator, true).is_ok());
assert!(erc.is_approved_for_all(owner, operator));
......@@ -801,7 +801,7 @@ mod erc1155 {
assert!(erc.is_approved_for_all(owner, another_operator));
assert!(erc.set_approval_for_all(operator, false).is_ok());
assert!(erc.is_approved_for_all(owner, operator) == false);
assert!(!erc.is_approved_for_all(owner, operator));
}
#[ink::test]
......
Supports Markdown
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