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;
1616
1717import "../utils/AccountCore.sol " ;
1818import "@thirdweb-dev/dynamic-contracts/src/core/Router.sol " ;
19+ import "@thirdweb-dev/dynamic-contracts/src/interface/IRouterState.sol " ;
1920
20- contract ManagedAccount is AccountCore , Router {
21+ contract ManagedAccount is AccountCore , Router , IRouterState {
2122 constructor (IEntryPoint _entrypoint , address _factory ) AccountCore (_entrypoint, _factory) {}
2223
2324 /// @notice Returns the implementation contract address for a given function signature.
2425 function getImplementationForFunction (bytes4 _functionSelector ) public view virtual override returns (address ) {
2526 return Router (payable (factory)).getImplementationForFunction (_functionSelector);
2627 }
28+
29+ /// @notice Returns all extensions of the Router.
30+ function getAllExtensions () external view returns (Extension[] memory ) {
31+ return IRouterState (payable (factory)).getAllExtensions ();
32+ }
2733}
You can’t perform that action at this time.
0 commit comments