Skip to content

Commit 252d1fa

Browse files
authored
Add a setter for the entrypoint (#23)
1 parent 4c6d107 commit 252d1fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/meta/MetaPaymaster.sol

+8
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,13 @@ contract MetaPaymaster is OwnableUpgradeable {
9292
SafeTransferLib.safeTransferETH(withdrawAddress, withdrawAmount);
9393
}
9494

95+
/**
96+
* @notice Sets the entrypoint.
97+
* @param _entryPoint New entrypoint
98+
*/
99+
function setEntryPoint(IEntryPoint _entryPoint) public onlyOwner {
100+
entryPoint = _entryPoint;
101+
}
102+
95103
receive() external payable {}
96104
}

0 commit comments

Comments
 (0)