Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add updateConfig method #246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading