@@ -80,6 +80,7 @@ type SimulateTxDisplayData = {
8080 from : AztecAddress ;
8181 decoded : ReadableTxInformation ;
8282 stats ?: SimulationStats ;
83+ embeddedPaymentMethodFeePayer ?: AztecAddress ;
8384} & Record < string , unknown > ;
8485
8586/**
@@ -200,7 +201,10 @@ export class SimulateTxOperation extends ExternalOperation<
200201 { contracts : contractOverrides }
201202 ) ;
202203
203- await this . db . storeTxSimulation ( payloadHash , simulationResult , txRequest ) ;
204+ await this . db . storeTxSimulation ( payloadHash , simulationResult , txRequest , {
205+ from : opts . from . toString ( ) ,
206+ embeddedPaymentMethodFeePayer : opts . fee ?. embeddedPaymentMethodFeePayer ?. toString ( ) ,
207+ } ) ;
204208
205209 const decodingService = new TxDecodingService ( this . decodingCache ) ;
206210 const decoded = await decodingService . decodeTransaction ( simulationResult ) ;
@@ -212,6 +216,7 @@ export class SimulateTxOperation extends ExternalOperation<
212216 from : opts . from ,
213217 decoded,
214218 stats : simulationResult . stats ,
219+ embeddedPaymentMethodFeePayer : opts . fee ?. embeddedPaymentMethodFeePayer ,
215220 } ,
216221 executionData : {
217222 simulationResult,
@@ -275,6 +280,7 @@ export class SimulateTxOperation extends ExternalOperation<
275280 title : displayData . title ,
276281 from : displayData . from . toString ( ) ,
277282 stats : displayData . stats ,
283+ embeddedPaymentMethodFeePayer : displayData . embeddedPaymentMethodFeePayer ?. toString ( ) ,
278284 } ,
279285 timestamp : Date . now ( ) ,
280286 persistence,
0 commit comments