Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-CZ committed Dec 13, 2024
1 parent e86e5db commit 59ab0fb
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 @@ -86,7 +86,7 @@ contract NodeDriverAuth is OwnableUpgradeable, UUPSUpgradeable {
if (acc != address(sfc)) {
revert RecipientNotSFC();
}
driver.setBalance(acc, address(acc).balance + diff);
driver.setBalance(acc, acc.balance + diff);
}

/// Upgrade code of given contract by coping 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 @@ -792,9 +792,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 59ab0fb

Please sign in to comment.