From af478754e30e5df7b0565de3f4e17451ceb323d8 Mon Sep 17 00:00:00 2001 From: Artem Chystiakov Date: Tue, 8 Aug 2023 16:59:13 +0300 Subject: [PATCH] fixed decimals --- contracts/libs/decimals/DecimalsConverter.sol | 2 +- contracts/mock/libs/decimals/DecimalsConverterMock.sol | 2 +- contracts/package.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/libs/decimals/DecimalsConverter.sol b/contracts/libs/decimals/DecimalsConverter.sol index ccc688ac..2efbcd7a 100644 --- a/contracts/libs/decimals/DecimalsConverter.sol +++ b/contracts/libs/decimals/DecimalsConverter.sol @@ -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(); } diff --git a/contracts/mock/libs/decimals/DecimalsConverterMock.sol b/contracts/mock/libs/decimals/DecimalsConverterMock.sol index 37d0562f..3298c4d2 100644 --- a/contracts/mock/libs/decimals/DecimalsConverterMock.sol +++ b/contracts/mock/libs/decimals/DecimalsConverterMock.sol @@ -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(); } diff --git a/contracts/package.json b/contracts/package.json index ad9868e9..846cca38 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -1,6 +1,6 @@ { "name": "@dlsl/dev-modules", - "version": "2.5.3", + "version": "2.5.4", "license": "MIT", "author": "Distributed Lab", "readme": "README.md", diff --git a/package.json b/package.json index 70b771f8..e5a70cc9 100644 --- a/package.json +++ b/package.json @@ -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",