@@ -131,6 +131,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
131131 assetMetadata,
132132 fee : transaction . totalFee . toString ( ) ,
133133 action,
134+ transaction,
134135 } ) ;
135136
136137 if ( ! confirmed ) {
@@ -208,6 +209,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
208209 assetMetadata : StellarAssetMetadata ;
209210 fee : string ;
210211 action : ChangeTrustOptAction ;
212+ transaction : Transaction ;
211213 } ) : Promise < boolean > {
212214 return params . action === ChangeTrustOptAction . Delete
213215 ? await this . #confirmSignChangeTrustOptOut( params )
@@ -219,6 +221,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
219221 account : StellarKeyringAccount ;
220222 assetMetadata : StellarAssetMetadata ;
221223 fee : string ;
224+ transaction : Transaction ;
222225 } ) : Promise < boolean > {
223226 return this . #confirmSignChangeTrust( {
224227 ...params ,
@@ -231,6 +234,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
231234 account : StellarKeyringAccount ;
232235 assetMetadata : StellarAssetMetadata ;
233236 fee : string ;
237+ transaction : Transaction ;
234238 } ) : Promise < boolean > {
235239 return this . #confirmSignChangeTrust( {
236240 ...params ,
@@ -243,6 +247,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
243247 account : StellarKeyringAccount ;
244248 assetMetadata : StellarAssetMetadata ;
245249 fee : string ;
250+ transaction : Transaction ;
246251 confirmationInterfaceKey :
247252 | ConfirmationInterfaceKey . ChangeTrustlineOptIn
248253 | ConfirmationInterfaceKey . ChangeTrustlineOptOut ;
@@ -254,6 +259,7 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
254259 account,
255260 assetMetadata,
256261 fee,
262+ transaction,
257263 confirmationInterfaceKey,
258264 } = params ;
259265 return (
@@ -267,6 +273,11 @@ export class ChangeTrustOptHandler extends BaseClientRequestHandler<
267273 interfaceKey : confirmationInterfaceKey ,
268274 renderOptions : {
269275 loadPrice : true ,
276+ scanTxn : true ,
277+ } ,
278+ securityScanRequest : {
279+ accountAddress : account . address ,
280+ transaction : transaction . getRaw ( ) . toXDR ( ) ,
270281 } ,
271282 } ) ) === true
272283 ) ;
0 commit comments