From 05058dfd90106a2d83e99423c65a8278b185aba2 Mon Sep 17 00:00:00 2001 From: Jay Paik Date: Tue, 26 Nov 2024 14:26:16 -0500 Subject: [PATCH] feat: fix IModularAccount to return address of the account for native functions --- src/interfaces/IModularAccountView.sol | 2 +- standard/ERCs/erc-6900.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interfaces/IModularAccountView.sol b/src/interfaces/IModularAccountView.sol index 5825652e..ac1b1c20 100644 --- a/src/interfaces/IModularAccountView.sol +++ b/src/interfaces/IModularAccountView.sol @@ -6,7 +6,7 @@ import {HookConfig, ModuleEntity, ValidationFlags} from "../interfaces/IModularA /// @dev Represents data associated with a specific function selector. struct ExecutionDataView { // The module that implements this execution function. - // If this is a native function, the address must remain address(0). + // If this is a native function, the address must be the address of the account. address module; // Whether or not the function needs runtime validation, or can be called by anyone. The function can still be // state changing if this flag is set to true. diff --git a/standard/ERCs/erc-6900.md b/standard/ERCs/erc-6900.md index 6adb20ad..36d6db91 100644 --- a/standard/ERCs/erc-6900.md +++ b/standard/ERCs/erc-6900.md @@ -226,7 +226,7 @@ Module inspection interface. Modular accounts MAY implement this interface to su /// @dev Represents data associated with a specific function selector. struct ExecutionDataView { // The module that implements this execution function. - // If this is a native function, the address must remain address(0). + // If this is a native function, the address must be the address of the account. address module; // Whether or not the function needs runtime validation, or can be called by anyone. The function can still be // state changing if this flag is set to true.