File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export const SOL_IMAGE_URL =
77export const MICRO_LAMPORTS_PER_LAMPORTS = 1_000_000n ;
88export const LAMPORTS_PER_SOL = 1_000_000_000 ;
99export const DEFAULT_NETWORK_BLOCK_EXPLORER_URL = 'https://solscan.io' ;
10+ export const METAMASK_ORIGIN = 'metamask' ;
1011
1112/**
1213 * Solana CAIP-2 Networks
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { InputChangeEvent } from '@metamask/snaps-sdk';
22import BigNumber from 'bignumber.js' ;
33import { merge } from 'lodash' ;
44
5- import { Networks } from '../../../../core/constants/solana' ;
5+ import { METAMASK_ORIGIN , Networks } from '../../../../core/constants/solana' ;
66import { ScheduleBackgroundEventMethod } from '../../../../core/handlers/onCronjob/backgroundEvents/ScheduleBackgroundEventMethod' ;
77import { buildUrl } from '../../../../core/utils/buildUrl' ;
88import {
@@ -470,7 +470,7 @@ async function onSendButtonClick({
470470 base64EncodedTransaction : context . transactionMessage ,
471471 metadata : {
472472 scope : context . scope ,
473- origin : null ,
473+ origin : METAMASK_ORIGIN ,
474474 } ,
475475 } ,
476476 } ,
Original file line number Diff line number Diff line change 1+ import { METAMASK_ORIGIN } from '../../../../core/constants/solana' ;
12import { ScheduleBackgroundEventMethod } from '../../../../core/handlers/onCronjob/backgroundEvents/ScheduleBackgroundEventMethod' ;
23import {
34 resolveInterface ,
@@ -70,7 +71,7 @@ async function onCancelButtonClick({
7071 base64EncodedTransaction : transactionMessage ,
7172 metadata : {
7273 scope,
73- origin : null ,
74+ origin : METAMASK_ORIGIN ,
7475 } ,
7576 } ,
7677 } ,
@@ -120,7 +121,7 @@ async function onConfirmButtonClick({
120121 base64EncodedTransaction : context . transactionMessage ,
121122 metadata : {
122123 scope : context . scope ,
123- origin : null ,
124+ origin : METAMASK_ORIGIN ,
124125 } ,
125126 } ,
126127 } ,
You can’t perform that action at this time.
0 commit comments