Skip to content

Commit

Permalink
⚡ Optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Feb 9, 2024
1 parent 3c7deb6 commit 8c9e89d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 1 addition & 3 deletions src/IE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -393,7 +392,6 @@ contract IE {
if (decimalPlaces < decimals) {
result *= 10 ** (decimals - decimalPlaces);
}
return result;
}
}
}
Expand Down

0 comments on commit 8c9e89d

Please sign in to comment.