Skip to content

Commit

Permalink
Update prettier commands and refactor 'if' condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo authored and gnarlycow committed Apr 10, 2024
1 parent bda279a commit 1d17738
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions contracts/EphemeralStorageLens.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ contract EphemeralStorageLens {
mstore(memptr, sload(calldataload(calldataptr)))
memptr := add(memptr, 0x20)
calldataptr := add(calldataptr, 0x20)
if eq(memptr, end) {
break
}
if iszero(lt(memptr, end)) { break }
}
return(0, end)
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"test:hardhat": "hardhat test",
"snapshot": "forge snapshot --isolate",
"snapshot:diff": "forge snapshot --diff --isolate",
"prettier": "prettier -c {contracts,test}/**/*.sol ./**/*.ts",
"prettier:fix": "prettier -w {contracts,test}/**/*.sol ./**/*.ts",
"prettier": "prettier -c contracts/{*,**/*}.sol test/**/*.sol ./**/*.ts",
"prettier:fix": "prettier -w contracts/{*,**/*}.sol test/**/*.sol ./**/*.ts",
"typechain": "hardhat typechain"
},
"dependencies": {
Expand Down

0 comments on commit 1d17738

Please sign in to comment.