Skip to content

Commit

Permalink
Update Address.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexaran authored Sep 21, 2021
1 parent 4e1fa2b commit cb60b5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/Address.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.0;
pragma solidity ^0.8.0;

/**
* @dev Collection of functions related to the address type
Expand Down Expand Up @@ -30,6 +30,6 @@ library Address {
* simply a type cast: the actual underlying value is not changed.
*/
function toPayable(address account) internal pure returns (address payable) {
return address(uint160(account));
return payable(account);
}
}

0 comments on commit cb60b5d

Please sign in to comment.