-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from bcnmy/fix/hook-fallback-issue-58
Fix hooking the `fallback()`
- Loading branch information
Showing
5 changed files
with
127 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ pragma solidity ^0.8.27; | |
// Nexus: A suite of contracts for Modular Smart Accounts compliant with ERC-7579 and ERC-4337, developed by Biconomy. | ||
// Learn more at https://biconomy.io. To report security issues, please contact us at: [email protected] | ||
|
||
import { CallType } from "../lib/ModeLib.sol"; | ||
import { PackedUserOperation } from "account-abstraction/contracts/interfaces/PackedUserOperation.sol"; | ||
|
||
/// @title Nexus - INexus Events and Errors | ||
|
@@ -32,10 +31,6 @@ interface INexusEventsAndErrors { | |
/// @param moduleTypeId The ID of the unsupported module type. | ||
error UnsupportedModuleType(uint256 moduleTypeId); | ||
|
||
/// @notice Error thrown when an execution with an unsupported CallType was made. | ||
/// @param callType The unsupported call type. | ||
error UnsupportedCallType(CallType callType); | ||
|
||
/// @notice Error thrown on failed execution. | ||
error ExecutionFailed(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ pragma solidity ^0.8.27; | |
// Nexus: A suite of contracts for Modular Smart Accounts compliant with ERC-7579 and ERC-4337, developed by Biconomy. | ||
// Learn more at https://biconomy.io. To report security issues, please contact us at: [email protected] | ||
|
||
import { CallType } from "../../lib/ModeLib.sol"; | ||
|
||
/// @title ERC-7579 Module Manager Events and Errors Interface | ||
/// @notice Provides event and error definitions for actions related to module management in smart accounts. | ||
/// @dev Used by IModuleManager to define the events and errors associated with the installation and management of modules. | ||
|
@@ -90,4 +92,8 @@ interface IModuleManagerEventsAndErrors { | |
|
||
/// @dev Thrown when there is an attempt to install a fallback handler with an invalid calltype for a given selector. | ||
error FallbackCallTypeInvalid(); | ||
|
||
/// @notice Error thrown when an execution with an unsupported CallType was made. | ||
/// @param callType The unsupported call type. | ||
error UnsupportedCallType(CallType callType); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters