Browse Source

Fix from account in remove public role behaviors (#1710)

Vittorio Minacori 6 năm trước cách đây
mục cha
commit
81e36d2e74
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      test/behaviors/access/roles/PublicRole.behavior.js

+ 2 - 2
test/behaviors/access/roles/PublicRole.behavior.js

@@ -101,11 +101,11 @@ function shouldBehaveLikePublicRole (authorized, otherAuthorized, [anyone], role
         });
 
         it('reverts when removing from an unassigned account', async function () {
-          await shouldFail.reverting(this.contract[`remove${rolename}`](anyone), { from });
+          await shouldFail.reverting(this.contract[`remove${rolename}`](anyone, { from }));
         });
 
         it('reverts when removing role from the null account', async function () {
-          await shouldFail.reverting(this.contract[`remove${rolename}`](ZERO_ADDRESS), { from });
+          await shouldFail.reverting(this.contract[`remove${rolename}`](ZERO_ADDRESS, { from }));
         });
       });
     });