Skip to content

Commit

Permalink
Add updateConfig method
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed May 31, 2024
1 parent 7dfa6bf commit f6fe455
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions erc20-bridge-token/contracts/BridgeTokenFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,20 @@ contract BridgeTokenFactory is
proxy.upgradeToAndCall(implementation, bytes(""));
}

function enableWhitelistMode() external onlyRole(DEFAULT_ADMIN_ROLE) {
_isWhitelistModeEnabled = true;
function setWhitelistMode(bool isEnabled) external onlyRole(DEFAULT_ADMIN_ROLE) {
_isWhitelistModeEnabled = isEnabled;
}

function disableWhitelistMode() external onlyRole(DEFAULT_ADMIN_ROLE) {
_isWhitelistModeEnabled = false;
function updateConfig(
address _tokenImplementationAddress,
bytes memory _nearTokenLocker,
INearProver _prover,
uint64 _minBlockAcceptanceHeight
) external onlyRole(DEFAULT_ADMIN_ROLE) {
tokenImplementationAddress = _tokenImplementationAddress;
nearTokenLocker = _nearTokenLocker;
prover = _prover;
minBlockAcceptanceHeight = _minBlockAcceptanceHeight;
}

function setTokenWhitelistMode(
Expand Down

0 comments on commit f6fe455

Please sign in to comment.