Skip to content

Commit d0d5fb1

Browse files
feat: Pass origin to SnapKeyring
1 parent e178e41 commit d0d5fb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/snaps-controllers/src/multichain/MultichainRouter.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export type MultichainRouterIsSupportedScopeAction = {
4646

4747
type SnapKeyring = {
4848
submitRequest: (request: {
49+
origin: string;
4950
account: string;
5051
method: string;
5152
params?: Json[] | Record<string, Json>;
@@ -316,6 +317,7 @@ export class MultichainRouter {
316317
if (accountId) {
317318
return this.#withSnapKeyring(async ({ keyring }) =>
318319
keyring.submitRequest({
320+
origin,
319321
account: accountId,
320322
scope,
321323
method,

0 commit comments

Comments
 (0)