From e6f987b664c8ba42bb9a71f03103979a11171b45 Mon Sep 17 00:00:00 2001 From: Karim Date: Thu, 30 May 2024 12:02:05 +0100 Subject: [PATCH] Change inheritance order (#243) --- erc20-bridge-token/contracts/BridgeTokenFactory.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erc20-bridge-token/contracts/BridgeTokenFactory.sol b/erc20-bridge-token/contracts/BridgeTokenFactory.sol index 40b20067..001235dc 100644 --- a/erc20-bridge-token/contracts/BridgeTokenFactory.sol +++ b/erc20-bridge-token/contracts/BridgeTokenFactory.sol @@ -17,10 +17,10 @@ import "./ResultsDecoder.sol"; import "./SelectivePausableUpgradable.sol"; contract BridgeTokenFactory is + ProofConsumer, UUPSUpgradeable, AccessControlUpgradeable, - SelectivePausableUpgradable, - ProofConsumer + SelectivePausableUpgradable { using Borsh for Borsh.Data; using SafeERC20 for IERC20; @@ -190,6 +190,7 @@ contract BridgeTokenFactory is function pauseWithdraw() external onlyRole(PAUSABLE_ADMIN_ROLE) { _pause(pausedFlags() | PAUSED_WITHDRAW); } + function pauseAll() external onlyRole(PAUSABLE_ADMIN_ROLE) { uint flags = PAUSED_DEPOSIT | PAUSED_WITHDRAW; _pause(flags);