Skip to content

Commit

Permalink
fix(pm): transfer ownership in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thecookfrankie committed Nov 28, 2023
1 parent 9dfa668 commit b07ce4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contracts/samples/VerifyingPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ contract VerifyingPaymaster is BasePaymaster {

constructor(
IEntryPoint _entryPoint,
address _verifyingSigner
address _verifyingSigner,
address _owner
) BasePaymaster(_entryPoint) {
verifyingSigner = _verifyingSigner;
_transferOwnership(_owner);
}

mapping(address => uint256) public senderNonce;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestVerifyingPaymaster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contract TestVerifyingPaymaster is VerifyingPaymaster {
constructor(
IEntryPoint entryPoint,
address verifyingSigner
) VerifyingPaymaster(entryPoint, verifyingSigner) {
) VerifyingPaymaster(entryPoint, verifyingSigner, msg.sender) {
return;
}

Expand Down

0 comments on commit b07ce4a

Please sign in to comment.