From 777c6232e8f611219b4bdb5fff7cd971f0f4c80c Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Wed, 20 Dec 2023 08:10:23 -1000 Subject: [PATCH] Add a setter for the entrypoint --- src/meta/MetaPaymaster.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meta/MetaPaymaster.sol b/src/meta/MetaPaymaster.sol index e3bc21f..bcddc58 100644 --- a/src/meta/MetaPaymaster.sol +++ b/src/meta/MetaPaymaster.sol @@ -92,5 +92,13 @@ contract MetaPaymaster is OwnableUpgradeable { SafeTransferLib.safeTransferETH(withdrawAddress, withdrawAmount); } + /** + * @notice Sets the entrypoint. + * @param _entryPoint New entrypoint + */ + function setEntryPoint(IEntryPoint _entryPoint) public onlyOwner { + entryPoint = _entryPoint; + } + receive() external payable {} }