From b5e32cbbb1cd0ef1daa07ed95d6999940f55d72f Mon Sep 17 00:00:00 2001 From: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> Date: Fri, 13 Dec 2024 01:10:34 +0200 Subject: [PATCH] build: lower optimizer runs (#1117) * build: decrease the optimizer runs chore: use 2.0.0 version in package json * test: fix test_ConstructCreate2Salt test --- foundry.toml | 2 +- package.json | 2 +- tests/utils/BaseScript.t.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/foundry.toml b/foundry.toml index f66d68801..6b041cf52 100644 --- a/foundry.toml +++ b/foundry.toml @@ -10,7 +10,7 @@ ] gas_limit = 9223372036854775807 optimizer = true - optimizer_runs = 1000 + optimizer_runs = 800 out = "out" script = "script" sender = "0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38" diff --git a/package.json b/package.json index 8f2661ac2..ebfb633fe 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@sablier/lockup", "description": "Core smart contracts of the Lockup token distribution protocol", "license": "BUSL-1.1", - "version": "1.2.0", + "version": "2.0.0", "author": { "name": "Sablier Labs Ltd", "url": "https://sablier.com" diff --git a/tests/utils/BaseScript.t.sol b/tests/utils/BaseScript.t.sol index 764cb1eef..838eb5929 100644 --- a/tests/utils/BaseScript.t.sol +++ b/tests/utils/BaseScript.t.sol @@ -17,7 +17,7 @@ contract BaseScript_Test is StdAssertions { function test_ConstructCreate2Salt() public view { string memory chainId = block.chainid.toString(); - string memory version = "1.2.0"; + string memory version = "2.0.0"; string memory salt = string.concat("ChainID ", chainId, ", Version ", version); bytes32 actualSalt = baseScript.constructCreate2Salt();