Skip to content

Commit b741f9d

Browse files
Fix lint
1 parent 67fd42e commit b741f9d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/snaps-utils/src/handlers.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,19 +124,21 @@ export const SNAP_EXPORTS = {
124124
[HandlerType.OnAssetsConversion]: {
125125
type: HandlerType.OnAssetsConversion,
126126
required: true,
127-
validator: (snapExport: unknown): snapExport is OnAssetsConversionHandler => {
127+
validator: (
128+
snapExport: unknown,
129+
): snapExport is OnAssetsConversionHandler => {
128130
return typeof snapExport === 'function';
129131
},
130132
},
131133
[HandlerType.OnProtocolRequest]: {
132134
type: HandlerType.OnProtocolRequest,
133-
required: false,
135+
required: true,
134136
validator: (
135137
snapExport: unknown,
136138
): snapExport is OnProtocolRequestHandler => {
137139
return typeof snapExport === 'function';
138140
},
139-
}
141+
},
140142
} as const;
141143

142144
export const OnTransactionSeverityResponseStruct = object({

0 commit comments

Comments
 (0)