Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

1.3 KB
Raw Blame
--- account/extensions/draft-AccountERC7579.sol	2025-07-22 11:18:42.944504471 +0200
+++ account/extensions/draft-AccountERC7579.sol	2025-07-22 13:57:03.670277084 +0200
@@ -60,8 +60,8 @@
     using EnumerableSet for *;
     using Packing for bytes32;
 
-    EnumerableSet.AddressSet private _validators;
-    EnumerableSet.AddressSet private _executors;
+    EnumerableSet.AddressSet internal _validators; // private → internal for FV
+    EnumerableSet.AddressSet internal _executors; // private → internal for FV
     mapping(bytes4 selector => address) private _fallbacks;
 
     /// @dev The account's {fallback} was called with a selector that doesn't have an installed handler.
@@ -308,8 +308,9 @@
      * the ERC-2771 format.
      */
     function _fallback() internal virtual returns (bytes memory) {
-        address handler = _fallbackHandler(msg.sig);
-        require(handler != address(0), ERC7579MissingFallbackHandler(msg.sig));
+        bytes4 selector = bytes4(msg.data[0:4]);
+        address handler = _fallbackHandler(selector);
+        require(handler != address(0), ERC7579MissingFallbackHandler(selector));
 
         // From https://eips.ethereum.org/EIPS/eip-7579#fallback[ERC-7579 specifications]:
         // - MUST utilize ERC-2771 to add the original msg.sender to the calldata sent to the fallback handler