Skip to content

Commit

Permalink
fixed decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Aug 8, 2023
1 parent 557642b commit af47875
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contracts/libs/decimals/DecimalsConverter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ library DecimalsConverter {
* @param token_ the ERC20 token
* @return the decimals of provided token
*/
function decimals(address token_) internal view returns (uint256) {
function decimals(address token_) internal view returns (uint8) {
return ERC20(token_).decimals();
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/mock/libs/decimals/DecimalsConverterMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {DecimalsConverter} from "../../../libs/decimals/DecimalsConverter.sol";
contract DecimalsConverterMock {
using DecimalsConverter for *;

function decimals(address token_) external view returns (uint256) {
function decimals(address token_) external view returns (uint8) {
return token_.decimals();
}

Expand Down
2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dlsl/dev-modules",
"version": "2.5.3",
"version": "2.5.4",
"license": "MIT",
"author": "Distributed Lab",
"readme": "README.md",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dlsl",
"version": "2.5.3",
"version": "2.5.4",
"license": "MIT",
"author": "Distributed Lab",
"description": "Solidity Development Modules by Distributed Lab",
Expand Down

0 comments on commit af47875

Please sign in to comment.