Skip to content

Commit

Permalink
keep the modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
livingrockrises committed Sep 4, 2024
1 parent 93c8e0d commit a7e1c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Nexus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ contract Nexus is INexus, BaseAccount, ExecutionHelper, ModuleManager, UUPSUpgra
/// as Biconomy v2 Account (proxy) reads implementation from the slot that is defined by its address
/// @param newImplementation The address of the new contract implementation.
/// @param data The calldata to be sent to the new implementation.
function upgradeToAndCall(address newImplementation, bytes calldata data) public payable virtual override withHook {
function upgradeToAndCall(address newImplementation, bytes calldata data) public payable virtual override onlyEntryPointOrSelf withHook {
if (newImplementation == address(0)) {
revert InvalidImplementationAddress();
}
Expand Down

0 comments on commit a7e1c10

Please sign in to comment.