Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Feb 18, 2025
1 parent 53d8e11 commit 22a7349
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/BaseTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ contract BaseTest is Test {

function setUp() public {
minimalDelegation = new MinimalDelegation();
_delegate(signer, address(minimalDelegation));
}

// delegate the signer to the minimalDelegation
vm.etch(signer, bytes.concat(hex"ef0100", abi.encodePacked(address(minimalDelegation))));
require(signer.code.length > 0, "signer not delegated");
function _delegate(address _signer, address _implementation) internal {
vm.etch(_signer, bytes.concat(hex"ef0100", abi.encodePacked(_implementation)));
require(_signer.code.length > 0, "signer not delegated");
}
}

0 comments on commit 22a7349

Please sign in to comment.