Skip to content

Commit

Permalink
[OZ][N-04] Unnecessary Casts (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ authored Jan 31, 2025
1 parent 86add7e commit 23beff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/sfc/NodeDriverAuth.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {

/// Mint native token. To be used by SFC for minting validators rewards.
function incBalance(address acc, uint256 diff) external onlySFC {
driver.setBalance(acc, address(acc).balance + diff);
driver.setBalance(acc, acc.balance + diff);
}

/// Upgrade code of given contract by copying it from other deployed contract.
Expand Down
4 changes: 2 additions & 2 deletions contracts/sfc/SFC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,9 @@ contract SFC is OwnableUpgradeable, UUPSUpgradeable, Version {
function _receiverOf(address addr) internal view returns (address payable) {
address to = getRedirection[addr];
if (to == address(0)) {
return payable(address(uint160(addr)));
return payable(addr);
}
return payable(address(uint160(to)));
return payable(to);
}

/// Seal epoch - sync validators.
Expand Down

0 comments on commit 23beff7

Please sign in to comment.