@@ -47,6 +47,7 @@ describe('onTransactionFinalized', () => {
4747
4848 it ( 'refreshes assets, balances and transactions for all accounts that are involved in the transaction' , async ( ) => {
4949 const mockAccountId = MOCK_SOLANA_KEYRING_ACCOUNT_0 . id ;
50+ const mockOrigin = 'https://metamask.io' ;
5051
5152 // A special transaction with multiple senders and recipients that are all owned by the keyring
5253 const mockTransaction : Transaction = {
@@ -117,6 +118,10 @@ describe('onTransactionFinalized', () => {
117118 params : {
118119 accountId : mockAccountId ,
119120 transaction : mockTransaction ,
121+ metadata : {
122+ scope : Network . Testnet ,
123+ origin : mockOrigin ,
124+ } ,
120125 } ,
121126 } ,
122127 } ) ;
@@ -144,6 +149,7 @@ describe('onTransactionFinalized', () => {
144149
145150 it ( 'refreshes balances and transactions for the sender only if it is the only account involved in the transaction' , async ( ) => {
146151 const mockAccountId = MOCK_SOLANA_KEYRING_ACCOUNT_0 . id ;
152+ const mockOrigin = 'https://metamask.io' ;
147153
148154 // Transaction with only one owned sender, and one non-owned recipient
149155 const mockTransaction : Transaction = {
@@ -187,6 +193,10 @@ describe('onTransactionFinalized', () => {
187193 params : {
188194 accountId : mockAccountId ,
189195 transaction : mockTransaction ,
196+ metadata : {
197+ scope : Network . Testnet ,
198+ origin : mockOrigin ,
199+ } ,
190200 } ,
191201 } ,
192202 } ) ;
0 commit comments