From d0552150a59dce338db022e991f2d55009aba9c0 Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Wed, 30 Oct 2024 17:28:46 -0600 Subject: [PATCH 1/2] chore: update version --- script/Deploy.s.sol | 6 +++--- src/TokenizedStrategy.sol | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index a932f7d..9d53d1c 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -9,8 +9,8 @@ contract Deploy is Script { Deployer public deployer = Deployer(0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed); - // Vault factory address for v3.0.3 - address public factory = 0x5577EdcB8A856582297CdBbB07055E6a6E38eb5f; + // Vault factory address for v3.0.4 + address public factory = 0x770D0d1Fb036483Ed4AbB6d53c1C88fb277D812F; function run() external { vm.startBroadcast(); @@ -22,7 +22,7 @@ contract Deploy is Script { ); // Pick an unique salt - bytes32 salt = keccak256("v3.0.3"); + bytes32 salt = bytes32(0); address contractAddress = deployer.deployCreate2(salt, bytecode); diff --git a/src/TokenizedStrategy.sol b/src/TokenizedStrategy.sol index 2347e4a..61e5354 100644 --- a/src/TokenizedStrategy.sol +++ b/src/TokenizedStrategy.sol @@ -343,7 +343,7 @@ contract TokenizedStrategy { //////////////////////////////////////////////////////////////*/ /// @notice API version this TokenizedStrategy implements. - string internal constant API_VERSION = "3.0.3"; + string internal constant API_VERSION = "3.0.4"; /// @notice Value to set the `entered` flag to during a call. uint8 internal constant ENTERED = 2; From 99196dd8c1c300f1703b00ef76fde84aa5ecd4c8 Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Wed, 30 Oct 2024 18:25:58 -0600 Subject: [PATCH 2/2] fix: meta data test --- script/Deploy.s.sol | 1 - src/test/ERC20Std.t.sol | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index 9d53d1c..7a3610b 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -21,7 +21,6 @@ contract Deploy is Script { abi.encode(factory) ); - // Pick an unique salt bytes32 salt = bytes32(0); address contractAddress = deployer.deployCreate2(salt, bytecode); diff --git a/src/test/ERC20Std.t.sol b/src/test/ERC20Std.t.sol index e7c1f01..d8103f8 100644 --- a/src/test/ERC20Std.t.sol +++ b/src/test/ERC20Std.t.sol @@ -23,7 +23,7 @@ contract ERC20BaseTest is Setup { string(abi.encodePacked("ys", asset.symbol())) ); assertEq(strategy.decimals(), 18); - assertEq(strategy.apiVersion(), "3.0.3"); + assertEq(strategy.apiVersion(), "3.0.4"); } function testFuzz_mint(address account_, uint256 amount_) public {