Skip to content

Commit

Permalink
test: always use abi encoder v2 in fuzz tests (#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Dec 7, 2022
1 parent 71bb7b2 commit 2e209fd
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pool-utils/test/foundry/BasePoolMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";
import "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol";
Expand Down Expand Up @@ -66,7 +67,6 @@ contract BasePoolMathJoinExitRoundingTest is Test {
bptAmount
);


// And check that we didn't get any free tokens
for (uint256 i = 0; i < arrayLength; ++i) {
assertLe(amountsOut[i], amountsIn[i]);
Expand Down
1 change: 1 addition & 0 deletions pkg/pool-utils/test/foundry/ComposablePoolLib.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/pool-utils/test/foundry/ExternalFees.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/pool-utils/test/foundry/PoolRegistrationLib.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/pool-weighted/test/foundry/ManagedPoolStorageLib.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/pool-weighted/test/foundry/ValueCompression.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/pool-weighted/test/foundry/WeightedMath.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";
import "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";
import "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>.

pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import { Test } from "forge-std/Test.sol";
import "@balancer-labs/v2-solidity-utils/contracts/math/FixedPoint.sol";
Expand Down
1 change: 1 addition & 0 deletions pkg/solidity-utils/test/foundry/FixedPoint.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/solidity-utils/test/foundry/InputHelpers.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/solidity-utils/test/foundry/Math.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down
1 change: 1 addition & 0 deletions pkg/solidity-utils/test/foundry/WordCodec.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

import "forge-std/Test.sol";

Expand Down

0 comments on commit 2e209fd

Please sign in to comment.