Skip to content

Commit

Permalink
Fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wcgcyx committed Nov 13, 2023
1 parent dc5d718 commit b963861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/child/ChildERC20Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ contract ChildERC20Bridge is
* @inheritdoc IChildERC20Bridge
*/
function updateBridgeAdaptor(address newBridgeAdaptor) external override {
if (!(hasRole(VARIABLE_MANAGER_ROLE, msg.sender))) {
if (!(hasRole(ADAPTOR_MANAGER_ROLE, msg.sender))) {
revert NotVariableManager(msg.sender);
}
if (newBridgeAdaptor == address(0)) {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/child/ChildERC20Bridge.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ contract ChildERC20BridgeUnitTest is Test, IChildERC20BridgeEvents, IChildERC20B
assertEq(address(childBridge.bridgeAdaptor()), newAdaptorAddress, "bridgeAdaptor not updated");
}

function test_RevertIf_updateBridgeAdaptorCalledByNotVariableManager() public {
function test_RevertIf_updateBridgeAdaptorCalledByNotAdaptorManager() public {
vm.prank(address(0xf00f00));
vm.expectRevert(abi.encodeWithSelector(NotVariableManager.selector, 0xf00f00));
childBridge.updateBridgeAdaptor(address(0x11111));
Expand Down

0 comments on commit b963861

Please sign in to comment.