Skip to content

Commit 4a4b5ec

Browse files
committed
[feat] ✨ allow to withdraw paymaster funds from stakeManager deposit
1 parent 96eb6a2 commit 4a4b5ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ChatterPayPaymaster.sol

+9
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,15 @@ contract ChatterPayPaymaster is IPaymaster {
151151
entryPoint.withdrawStake(withdrawAddress);
152152
}
153153

154+
/**
155+
* withdraw from the deposit.
156+
* @param withdrawAddress the address to send withdrawn value.
157+
* @param withdrawAmount the amount to withdraw.
158+
*/
159+
function withdrawTo(address payable withdrawAddress, uint256 withdrawAmount) external {
160+
entryPoint.withdrawTo(withdrawAddress, withdrawAmount);
161+
}
162+
154163
/**
155164
* @notice Executes a low-level call to a specified address
156165
* @dev Only callable by the contract owner

0 commit comments

Comments
 (0)