Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohann committed Dec 26, 2024
1 parent 62c8e80 commit a71d2a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ src = "src"
test = "test"
out = "out"
libs = ["lib"]
match_contract = ".+Test"
# Permissions
fs_permissions = [{ access = "read", path = "./lib/universal-factory/abi" }]

Expand Down
5 changes: 3 additions & 2 deletions test/utils/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ abstract contract BaseTest is Test {
mstore(add(offset, 1), 0x5B)
mstore(offset, INLINE_BYTECODE)

for {} lt(offset, size) {} {
// Replace remaining occurences of `0x7E7E7E...` by the `INLINE_BYTECODE`

for { let end := add(size, 0x20) } lt(offset, end) {} {
let backup := mload(offset)
mstore(offset, tag)
success := staticcall(gas(), findBytes, offset, sub(add(size, 0x20), offset), 0x00, 0x20)
Expand All @@ -90,7 +92,6 @@ abstract contract BaseTest is Test {
offset := add(mload(0x00), 0x20)
mstore(add(offset, 1), 0x5B)
mstore(offset, INLINE_BYTECODE)
break
}

return(0x20, size)
Expand Down

0 comments on commit a71d2a0

Please sign in to comment.