Skip to content

Commit

Permalink
📖 Renaming calls
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed May 25, 2023
1 parent ca91383 commit 9678fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/MetamorphicContract.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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));
}
}

0 comments on commit 9678fd6

Please sign in to comment.