Skip to content

Commit

Permalink
Add a privileged function changeChainKeyAddress.
Browse files Browse the repository at this point in the history
  • Loading branch information
riversyang committed May 31, 2024
1 parent f51c115 commit dbe74e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/OmnityPort.sol
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@ contract OmnityPortContract is Ownable {
TokenContract(tokens[tokenId].erc20ContractAddr).updateName(name_);
}

function changeChainKeyAddress(address newChainKeyAddress) public onlyOwner {
require(newChainKeyAddress != address(0), "chainKeyAddress is zero");
chainKeyAddress = newChainKeyAddress;
}

function collectFee(address to_) public onlyOwner {
payable(to_).transfer(address(this).balance);
}
Expand Down

0 comments on commit dbe74e8

Please sign in to comment.