diff --git a/.gas-snapshot b/.gas-snapshot index f521fab..a9961b2 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,15 +1,15 @@ IETest:testBalanceInERC20() (gas: 62541) IETest:testBalanceInETH() (gas: 53683) -IETest:testCommandSendERC0() (gas: 114294) -IETest:testCommandSendETH() (gas: 80794) -IETest:testCommandSendUSDC() (gas: 147030) -IETest:testDeploy() (gas: 1740539) +IETest:testCommandSendERC0() (gas: 114286) +IETest:testCommandSendETH() (gas: 80786) +IETest:testCommandSendUSDC() (gas: 147022) +IETest:testDeploy() (gas: 1739939) IETest:testENSNameFromENSHelper() (gas: 29125) IETest:testENSNameOwnership() (gas: 109154) IETest:testIENameSetting() (gas: 8174) -IETest:testPreviewCommandSendDecimals() (gas: 111562) -IETest:testPreviewCommandSendUSDC() (gas: 77334) -IETest:testPreviewSend() (gas: 54699) -IETest:testPreviewSendCommand() (gas: 66548) -IETest:testSendETH() (gas: 70975) +IETest:testPreviewCommandSendDecimals() (gas: 111546) +IETest:testPreviewCommandSendUSDC() (gas: 77326) +IETest:testPreviewSend() (gas: 54691) +IETest:testPreviewSendCommand() (gas: 66540) +IETest:testSendETH() (gas: 70967) IETest:testTotalSupply() (gas: 14810) \ No newline at end of file diff --git a/src/IE.sol b/src/IE.sol index bea8417..5d8a7d0 100644 --- a/src/IE.sol +++ b/src/IE.sol @@ -368,10 +368,9 @@ contract IE { internal pure virtual - returns (uint256) + returns (uint256 result) { unchecked { - uint256 result; bool hasDecimal; uint256 decimalPlaces; bytes memory b = bytes(s); @@ -393,7 +392,6 @@ contract IE { if (decimalPlaces < decimals) { result *= 10 ** (decimals - decimalPlaces); } - return result; } } }