Skip to content

Commit

Permalink
⚡ ~~
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Feb 16, 2024
1 parent fed602a commit 55a6362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ IETest:testBalanceInETH() (gas: 40280)
IETest:testCommandSendERC0() (gas: 102922)
IETest:testCommandSendETH() (gas: 69404)
IETest:testCommandSendUSDC() (gas: 135652)
IETest:testCommandSwapDAI() (gas: 101833)
IETest:testCommandSwapETH() (gas: 113517)
IETest:testCommandSwapForETH() (gas: 123203)
IETest:testCommandSwapUSDC() (gas: 157158)
IETest:testCommandSwapDAI() (gas: 101147)
IETest:testCommandSwapETH() (gas: 113487)
IETest:testCommandSwapForETH() (gas: 122654)
IETest:testCommandSwapUSDC() (gas: 157172)
IETest:testCommandSwapUSDCForWBTC() (gas: 165068)
IETest:testDeploy() (gas: 2643012)
IETest:testENSNameOwnership() (gas: 83907)
Expand Down
4 changes: 2 additions & 2 deletions src/IE.sol
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ contract IE {
returns (bytes32 result)
{
assembly ("memory-safe") {
let str := add(normalizedIntent, 32)
for { let i } lt(i, 32) { i := add(i, 1) } {
let str := add(normalizedIntent, 0x20)
for { let i } lt(i, 0x20) { i := add(i, 1) } {
let char := byte(0, mload(add(str, i)))
if eq(char, 0x20) { break }
result := or(result, shl(sub(248, mul(i, 8)), char))
Expand Down

0 comments on commit 55a6362

Please sign in to comment.