Skip to content

Commit 7944b6e

Browse files
authored
[OZ][N-06] Comment Improvements (#117)
1 parent ba2e9ba commit 7944b6e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contracts/sfc/NodeDriverAuth.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
6767
}
6868

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

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

102-
/// Upgrade code of given contract by coping it from other deployed contract.
102+
/// Upgrade code of given contract by copying it from other deployed contract.
103103
/// Does not avoid setting code to an external address. (DANGEROUS!)
104104
function copyCode(address acc, address from) external onlyOwner {
105105
driver.copyCode(acc, from);

contracts/sfc/SFC.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version {
294294
}
295295

296296
/// Accept redirection proposal.
297-
/// Redirection must by accepted by the validator key holder before it start to be applied.
297+
/// Redirection must by accepted by the validator key holder before it starts to be applied.
298298
function redirect(address to) external {
299299
address from = msg.sender;
300300
if (to == address(0)) {

0 commit comments

Comments
 (0)