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

[OZ][N-06] Comment Improvements #117

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
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
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
Loading