Skip to content

Commit

Permalink
Remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 3, 2024
1 parent d0f0177 commit 0fe34f8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions contracts/PaymasterController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,10 @@ contract PaymasterController is IPaymasterController, Permissions {
override
onlyPaymasterSetter
{
if (!marionetteAddress.isContract()) {
revert IsNotContract(marionetteAddress);
}
marionette = IMarionette(marionetteAddress);
}

function setPaymasterAddress(address paymasterAddress) external override onlyPaymasterSetter {
if (!paymasterAddress.isContract()) {
revert IsNotContract(paymasterAddress);
}
paymaster = IPaymaster(paymasterAddress);
}

Expand Down

0 comments on commit 0fe34f8

Please sign in to comment.