File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/snaps-rpc-methods/src/permitted Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { rpcErrors } from '@metamask/rpc-errors';
44import type {
55 GetInterfaceContextParams ,
66 GetInterfaceContextResult ,
7- InterfaceState ,
7+ InterfaceContext ,
88 JsonRpcRequest ,
99} from '@metamask/snaps-sdk' ;
1010import { type InferMatching } from '@metamask/snaps-utils' ;
@@ -20,9 +20,9 @@ const hookNames: MethodHooksObject<GetInterfaceContextMethodHooks> = {
2020export type GetInterfaceContextMethodHooks = {
2121 /**
2222 * @param id - The interface ID.
23- * @returns The interface state .
23+ * @returns The interface context .
2424 */
25- getInterfaceContext : ( id : string ) => InterfaceState ;
25+ getInterfaceContext : ( id : string ) => InterfaceContext | null ;
2626} ;
2727
2828export const getInterfaceContextHandler : PermittedHandlerExport <
@@ -53,7 +53,7 @@ export type GetInterfaceContextParameters = InferMatching<
5353 * function.
5454 * @param end - The `json-rpc-engine` "end" callback.
5555 * @param hooks - The RPC method hooks.
56- * @param hooks.getInterfaceContext - The function to get the interface state .
56+ * @param hooks.getInterfaceContext - The function to get the interface context .
5757 * @returns Noting.
5858 */
5959function getInterfaceContextImplementation (
You can’t perform that action at this time.
0 commit comments