File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
contracts/prebuilts/account/managed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,18 @@ pragma solidity ^0.8.11;
16
16
17
17
import "../utils/AccountCore.sol " ;
18
18
import "@thirdweb-dev/dynamic-contracts/src/core/Router.sol " ;
19
+ import "@thirdweb-dev/dynamic-contracts/src/interface/IRouterState.sol " ;
19
20
20
- contract ManagedAccount is AccountCore , Router {
21
+ contract ManagedAccount is AccountCore , Router , IRouterState {
21
22
constructor (IEntryPoint _entrypoint , address _factory ) AccountCore (_entrypoint, _factory) {}
22
23
23
24
/// @notice Returns the implementation contract address for a given function signature.
24
25
function getImplementationForFunction (bytes4 _functionSelector ) public view virtual override returns (address ) {
25
26
return Router (payable (factory)).getImplementationForFunction (_functionSelector);
26
27
}
28
+
29
+ /// @notice Returns all extensions of the Router.
30
+ function getAllExtensions () external view returns (Extension[] memory ) {
31
+ return IRouterState (payable (factory)).getAllExtensions ();
32
+ }
27
33
}
You can’t perform that action at this time.
0 commit comments