File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/transaction-controller Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Added
1111
12+ - Support security validation of transaction batches ([ #5526 ] ( https://github.com/MetaMask/core/pull/5526 ) )
13+ - Add ` ValidateSecurityRequest ` type.
14+ - Add optional ` securityAlertId ` to ` SecurityAlertResponse ` .
15+ - Add optional ` securityAlertId ` to ` TransactionBatchRequest ` .
16+ - Add optional ` validateSecurity ` callback to ` TransactionBatchRequest ` .
1217- Support publish batch hook ([ #5401 ] ( https://github.com/MetaMask/core/pull/5401 ) )
1318 - Add ` hooks.publishBatch ` option to constructor.
1419 - Add ` updateBatchTransactions ` method.
Original file line number Diff line number Diff line change @@ -1140,8 +1140,8 @@ export type TransactionError = {
11401140export type SecurityAlertResponse = {
11411141 features ?: string [ ] ;
11421142 providerRequestsCount ?: Record < string , number > ;
1143- reason ? : string ;
1144- result_type ? : string ;
1143+ reason : string ;
1144+ result_type : string ;
11451145 securityAlertId ?: string ;
11461146} ;
11471147
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { CollectPublishHook } from '../hooks/CollectPublishHook';
2626import { projectLogger } from '../logger' ;
2727import type {
2828 NestedTransactionMetadata ,
29+ SecurityAlertResponse ,
2930 TransactionBatchSingleRequest ,
3031 PublishBatchHook ,
3132 PublishBatchHookTransaction ,
@@ -189,7 +190,7 @@ export async function addTransactionBatch(
189190 const batchId = batchIdOverride ?? generateBatchId ( ) ;
190191
191192 const securityAlertResponse = securityAlertId
192- ? { securityAlertId }
193+ ? ( { securityAlertId } as SecurityAlertResponse )
193194 : undefined ;
194195
195196 const { result } = await addTransaction ( txParams , {
You can’t perform that action at this time.
0 commit comments