File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/snaps-rpc-methods/src/endowments Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { PermissionConstraint } from '@metamask/permission-controller';
2
2
import { HandlerType } from '@metamask/snaps-utils' ;
3
3
import type { Json } from '@metamask/utils' ;
4
4
5
+ import type { CaveatMapperFunction } from './caveats' ;
5
6
import {
6
7
createMaxRequestTimeMapper ,
7
8
getMaxRequestTimeCaveatMapper ,
@@ -75,7 +76,7 @@ export const endowmentCaveatMappers: Record<
75
76
( value : Json ) => Pick < PermissionConstraint , 'caveats' >
76
77
> = {
77
78
[ cronjobEndowmentBuilder . targetName ] : createMaxRequestTimeMapper (
78
- getCronjobCaveatMapper ,
79
+ getCronjobCaveatMapper as CaveatMapperFunction ,
79
80
) ,
80
81
[ transactionInsightEndowmentBuilder . targetName ] : createMaxRequestTimeMapper (
81
82
getTransactionInsightCaveatMapper ,
You can’t perform that action at this time.
0 commit comments