Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Nov 28, 2024
1 parent bb687c0 commit 4dca4e0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions test/advanced/EIP7702.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ contract EIP7702 is TestBaseUtilAdvanced {
view
returns (bytes memory)
{
// bytes memory initData = _getInitData();
// (address bootstrap, bytes memory bootstrapCall) = abi.decode(initData, (address,
// bytes));
// bytes32 hash = HashLib.hash(bootstrap, bootstrapCall);
// (uint8 v, bytes32 r, bytes32 s) = vm.sign(eoaKey, hash.toEthSignedMessageHash());
// bytes memory signature = abi.encodePacked(r, s, v);
//
// return abi.encode(initData, signature, hex"41414141414141");

bytes32 hash = entrypoint.getUserOpHash(userOp);
(uint8 v, bytes32 r, bytes32 s) = vm.sign(eoaKey, hash.toEthSignedMessageHash());
return abi.encodePacked(r, s, v);
Expand Down

0 comments on commit 4dca4e0

Please sign in to comment.