You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("non control admin cannot call pause()",asyncfunction(){
55
58
awaitexpect(runTest({
56
59
pause: true
57
-
})).to.be.revertedWith("Ownable: caller is not the owner");
60
+
})).to.be.revertedWith("AccessControl: account 0xead9c93b79ae7c1591b1fb5323bd777e86e150d4 is missing role 0xbdded29a54e6a5d6169bedea55373b06f57e35d7b0f67ac187565b435e2cc943");
it("non control admin call unpause()",asyncfunction(){
61
64
awaitexpect(runTest({
62
65
unpause: true
63
-
})).to.be.revertedWith("Ownable: caller is not the owner");
66
+
})).to.be.revertedWith("AccessControl: account 0xead9c93b79ae7c1591b1fb5323bd777e86e150d4 is missing role 0xbdded29a54e6a5d6169bedea55373b06f57e35d7b0f67ac187565b435e2cc943");
64
67
});
65
68
66
-
it("owner can call pause() and unpause()",asyncfunction(){
69
+
it("control admin can call pause() and unpause()",asyncfunction(){
})).to.be.revertedWith("Ownable: caller is not the owner");
47
+
isAdmin: false
48
+
})).to.be.revertedWith("AccessControl: account 0xead9c93b79ae7c1591b1fb5323bd777e86e150d4 is missing role 0xdf8b4c520ffe197c5343c6f5aec59570151ef9a492f2c624fd45ddde6135ec42");
49
49
});
50
50
51
-
it("old relayAdmin have no role after transferred", async function () {
51
+
it("admin can call transferAdmin",asyncfunction(){
52
52
awaitexpect(runTest({
53
-
isRelayerAdmin: true
54
-
})).to.be.revertedWith("Ownable: caller is not the owner");
0 commit comments