Skip to content

Commit

Permalink
Merge pull request #1122 from skalenetwork/hotfix/contract-check
Browse files Browse the repository at this point in the history
Remove redundant check
  • Loading branch information
DimaStebaev authored Sep 4, 2024
2 parents d0f0177 + 0fe34f8 commit 8fa04e3
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 8fa04e3

Please sign in to comment.