Skip to content

Commit

Permalink
fix: revert to default compiler settings
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed Sep 3, 2024
1 parent e21443d commit e764725
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ src = "contracts"
out = "out"
libs = ["lib"]
optimizer = true
optimizer_runs = 999999
via_ir = true
optimizer_runs = 200
via_ir = false
bytecode_hash = "none"
verbosity = 2
ffi = true
fs_permissions = [{ access = "read", path = "./out/"}]
Expand Down Expand Up @@ -42,4 +43,4 @@ mumbai = { key = "${POLYGONSCAN_API_KEY}" }
polygon_zkevm = { key = "${POLYGONSCAN_ZKEVM_API_KEY}" }
polygon_zkevm_testnet = { key = "${POLYGONSCAN_ZKEVM_API_KEY}" }

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
16 changes: 9 additions & 7 deletions test/BorValidatorSet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ contract BorValidatorSetTest is Test {
bytes memory validatorBytes;
bytes memory producerBytes;

string[] memory cmd = new string[](4);
cmd[0] = "node";
cmd[1] = "test/helpers/rlpEncodeValidatorsAndProducers.js";
cmd[2] = vm.toString(numOfValidators);
cmd[3] = vm.toString(numOfProducers);
bytes memory result = vm.ffi(cmd);
(ids, powers, signers, validatorBytes, producerBytes) = abi.decode(result, (uint256[], uint256[], address[], bytes, bytes));
{
string[] memory cmd = new string[](4);
cmd[0] = "node";
cmd[1] = "test/helpers/rlpEncodeValidatorsAndProducers.js";
cmd[2] = vm.toString(numOfValidators);
cmd[3] = vm.toString(numOfProducers);
bytes memory result = vm.ffi(cmd);
(ids, powers, signers, validatorBytes, producerBytes) = abi.decode(result, (uint256[], uint256[], address[], bytes, bytes));
}

vm.prank(SYSTEM_ADDRESS);
borValidatorSet.commitSpan(newSpan, startBlock, endBlock, validatorBytes, producerBytes);
Expand Down

0 comments on commit e764725

Please sign in to comment.