File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/snaps-simulation/src/methods/hooks Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,15 @@ import { SnapStatus } from '@metamask/snaps-utils';
44import type { SemVerVersion } from '@metamask/utils' ;
55
66/**
7- * Get a method that can be used to track an event .
7+ * Get a method that gets a Snap by its ID .
88 *
99 * @param preinstalled - Whether the Snap is preinstalled. If `true`, the Snap
1010 * will be returned as a preinstalled Snap.
11- * @returns A method that can be used to track an event.
11+ * @returns A method that gets a Snap by its ID. It will always return a mock
12+ * Snap for simulation purposes.
1213 */
1314export function getGetSnapImplementation ( preinstalled : boolean = true ) {
14- return ( ) : Snap => {
15+ return ( _snapId : string ) : Snap => {
1516 // This is a mock Snap for simulation purposes. Most of the fields are not
1617 // actually used, but returned for type-safety sake.
1718 return {
You can’t perform that action at this time.
0 commit comments