From 9678fd65b77e91d33f3ed3e1806b11f66bbfd763 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Thu, 25 May 2023 23:40:55 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20Renaming=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- test/MetamorphicContract.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/MetamorphicContract.t.sol b/test/MetamorphicContract.t.sol index bf6d3a5..626b02f 100644 --- a/test/MetamorphicContract.t.sol +++ b/test/MetamorphicContract.t.sol @@ -38,7 +38,7 @@ contract MetamorphicContract is Test { function setUp() public { factory = new Factory{salt: keccak256(abi.encode("evil"))}(); - a = A(factory.createA()); + a = A(factory.helloA()); /// @dev Call `selfdestruct` during the `setUp` call (see https://github.com/foundry-rs/foundry/issues/1543). a.kill(); @@ -53,7 +53,7 @@ contract MetamorphicContract is Test { /// @dev Redeploy the factory contract at the same address. factory = new Factory{salt: keccak256(abi.encode("evil"))}(); /// @dev Deploy another logic contract at the same address as previously contract `a`. - b = B(factory.createB()); + b = B(factory.helloB()); assertEq(address(a), address(b)); } }