From bdfc1ffe299afe72b6fd012530036308329c7277 Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Sun, 27 Nov 2022 15:23:21 +0100 Subject: [PATCH 1/2] fix: update huffconfig address --- test/utils/TSOwnable.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils/TSOwnable.t.sol b/test/utils/TSOwnable.t.sol index a02a6377..6b18e883 100644 --- a/test/utils/TSOwnable.t.sol +++ b/test/utils/TSOwnable.t.sol @@ -13,7 +13,7 @@ interface TSOwnable { contract TSOwnableTest is Test { TSOwnable tsOwnable; - address immutable huffConfig = 0x18669eb6c7dFc21dCdb787fEb4B3F1eBb3172400; + address immutable huffConfig = 0xFEfC6BAF87cF3684058D62Da40Ff3A795946Ab06; function setUp() public { // Deploy TSOwnable From 3d0dd2317fdccb9694441be567a983c051263527 Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Sun, 27 Nov 2022 17:12:16 +0100 Subject: [PATCH 2/2] fix: make tests more resilient --- test/utils/TSOwnable.t.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/utils/TSOwnable.t.sol b/test/utils/TSOwnable.t.sol index 6b18e883..a3a7b77d 100644 --- a/test/utils/TSOwnable.t.sol +++ b/test/utils/TSOwnable.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: Unlicense pragma solidity ^0.8.15; -import "foundry-huff/HuffDeployer.sol"; +import "foundry-huff/HuffConfig.sol"; import "forge-std/Test.sol"; interface TSOwnable { @@ -13,14 +13,14 @@ interface TSOwnable { contract TSOwnableTest is Test { TSOwnable tsOwnable; - address immutable huffConfig = 0xFEfC6BAF87cF3684058D62Da40Ff3A795946Ab06; + address huffConfig; function setUp() public { // Deploy TSOwnable string memory wrapper_code = vm.readFile("test/utils/mocks/TSOwnableWrappers.huff"); + huffConfig = address(new HuffConfig()); tsOwnable = TSOwnable( - HuffDeployer - .config() + HuffConfig(huffConfig) .with_code(wrapper_code) .deploy("utils/TSOwnable") );