Skip to content

Commit af47875

Browse files
committed
fixed decimals
1 parent 557642b commit af47875

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

contracts/libs/decimals/DecimalsConverter.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ library DecimalsConverter {
3939
* @param token_ the ERC20 token
4040
* @return the decimals of provided token
4141
*/
42-
function decimals(address token_) internal view returns (uint256) {
42+
function decimals(address token_) internal view returns (uint8) {
4343
return ERC20(token_).decimals();
4444
}
4545

contracts/mock/libs/decimals/DecimalsConverterMock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {DecimalsConverter} from "../../../libs/decimals/DecimalsConverter.sol";
66
contract DecimalsConverterMock {
77
using DecimalsConverter for *;
88

9-
function decimals(address token_) external view returns (uint256) {
9+
function decimals(address token_) external view returns (uint8) {
1010
return token_.decimals();
1111
}
1212

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dlsl/dev-modules",
3-
"version": "2.5.3",
3+
"version": "2.5.4",
44
"license": "MIT",
55
"author": "Distributed Lab",
66
"readme": "README.md",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dlsl",
3-
"version": "2.5.3",
3+
"version": "2.5.4",
44
"license": "MIT",
55
"author": "Distributed Lab",
66
"description": "Solidity Development Modules by Distributed Lab",

0 commit comments

Comments
 (0)