Skip to content

Commit

Permalink
Add comments improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Dec 13, 2024
1 parent e86e5db commit 7c57307
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/sfc/NodeDriverAuth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
}

/// Execute a batch update of network configuration.
/// Run given contract with a permission of the NodeDriverAuth owner.
/// The executable will run with the privileges of the NodeDriverAuth owner.
/// Does not allow changing NodeDriver and NodeDriverAuth code.
function execute(address executable) external onlyOwner {
_execute(executable, owner(), _getCodeHash(address(this)), _getCodeHash(address(driver)));
Expand All @@ -89,7 +89,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
driver.setBalance(acc, address(acc).balance + diff);
}

/// Upgrade code of given contract by coping it from other deployed contract.
/// Upgrade code of given contract by copying it from other deployed contract.
/// Avoids setting code to an external address.
function upgradeCode(address acc, address from) external onlyOwner {
if (!isContract(acc) || !isContract(from)) {
Expand All @@ -98,7 +98,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
driver.copyCode(acc, from);
}

/// Upgrade code of given contract by coping it from other deployed contract.
/// Upgrade code of given contract by copying it from other deployed contract.
/// Does not avoid setting code to an external address. (DANGEROUS!)
function copyCode(address acc, address from) external onlyOwner {
driver.copyCode(acc, from);
Expand Down
2 changes: 1 addition & 1 deletion contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version {
}

/// Accept redirection proposal.
/// Redirection must by accepted by the validator key holder before it start to be applied.
/// Redirection must by accepted by the validator key holder before it starts to be applied.
function redirect(address to) external {
address from = msg.sender;
if (to == address(0)) {
Expand Down

0 comments on commit 7c57307

Please sign in to comment.