File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,11 @@ export type BaseMockAccountOptions = {
310310 * Whether the account is selected by default.
311311 */
312312 selected ?: boolean ;
313+
314+ /**
315+ * Whether the account is owned by the snap.
316+ */
317+ owned ?: boolean ;
313318} ;
314319
315320/**
@@ -363,6 +368,7 @@ export type GetMockAccountOptions =
363368 * @param options.assets - The assets associated with the account, in CAIP
364369 * format. If not provided, it will default to an empty array.
365370 * @param options.selected - Whether the account is selected by default.
371+ * @param options.owned - Whether the account is owned by the snap.
366372 * @param options.id - The ID of the account. If not provided, a pseudo-random
367373 * UUID will be generated.
368374 * @returns A mock account object with the specified properties.
@@ -371,6 +377,7 @@ export function getMockAccount({
371377 address,
372378 assets = [ ] ,
373379 selected = false ,
380+ owned = false ,
374381 id = getPseudoRandomUuid ( ) ,
375382 scopes = getScopesFromAssets ( assets ) ,
376383} : GetMockAccountOptions ) : SimulationAccount {
@@ -379,6 +386,7 @@ export function getMockAccount({
379386 id,
380387 scopes,
381388 selected,
389+ owned,
382390 assets,
383391 } ;
384392}
You can’t perform that action at this time.
0 commit comments