Skip to content

Commit 77f4594

Browse files
authored
Add RouterState to ManagedAccount (#520)
1 parent c1c1583 commit 77f4594

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

contracts/prebuilts/account/managed/ManagedAccount.sol

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ pragma solidity ^0.8.11;
1616

1717
import "../utils/AccountCore.sol";
1818
import "@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
}

0 commit comments

Comments
 (0)