From 5ad4f0d5b0afd5ab2b3442d88a22a42307b227fc Mon Sep 17 00:00:00 2001 From: Bhaskar Kashyap <31563474+bskrksyp9@users.noreply.github.com> Date: Thu, 25 Nov 2021 12:51:16 +0530 Subject: [PATCH] added best practice I had re-compiled this edited code in RemixIDE found no warns/error , please check once and let me know if this makes a small improvement --- contracts/common/tokens/TestToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/common/tokens/TestToken.sol b/contracts/common/tokens/TestToken.sol index 7dffc0068..b9b6bf5a4 100644 --- a/contracts/common/tokens/TestToken.sol +++ b/contracts/common/tokens/TestToken.sol @@ -12,7 +12,7 @@ contract TestToken is ERC20Mintable { name = _name; symbol = _symbol; - uint256 value = 10**10 * (10**18); + uint256 value = 10**10 * (10**uint256(decimals)); mint(msg.sender, value); } }