Skip to content

Commit

Permalink
optimization: eanble via-ir
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger committed Jun 7, 2024
1 parent 95b158a commit 5ed3f39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ src = 'src'
out = 'foundry-out'
solc_version = '0.8.26'
optimizer_runs = 400
via_ir = false
via_ir = true
ffi = true
fs_permissions = [
{ access = "read-write", path = ".forge-snapshots/" },
{ access = "read", path = "./foundry-out" },
{ access = "read", path = "./script/config"},
{ access = "read", path = "./script/config" },
]
evm_version = 'cancun'

Expand Down
2 changes: 1 addition & 1 deletion src/base/Multicall.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ abstract contract Multicall is IMulticall {
if (!success) {
// Next 5 lines from https://ethereum.stackexchange.com/a/83577
if (result.length < 68) revert();
assembly {
assembly ("memory-safe") {
result := add(result, 0x04)
}
revert(abi.decode(result, (string)));
Expand Down

0 comments on commit 5ed3f39

Please sign in to comment.