@@ -253,24 +253,29 @@ export interface ContractDataPayload {
253253 *
254254 * @class TxIntentMismatchError
255255 * @extends {BitGoJsError }
256- * @property {string | IRequestTracer } id - Transaction ID or request tracer for tracking
256+ * @property {string | IRequestTracer | undefined } id - Transaction ID or request tracer for tracking
257257 * @property {TransactionParams[] } txParams - Array of transaction parameters that were analyzed
258- * @property {string } txHex - The raw transaction in hexadecimal format
258+ * @property {string | undefined } txHex - The raw transaction in hexadecimal format
259259 */
260260export class TxIntentMismatchError extends BitGoJsError {
261- public readonly id : string | IRequestTracer ;
261+ public readonly id : string | IRequestTracer | undefined ;
262262 public readonly txParams : TransactionParams [ ] ;
263- public readonly txHex : string ;
263+ public readonly txHex : string | undefined ;
264264
265265 /**
266266 * Creates an instance of TxIntentMismatchError
267267 *
268268 * @param {string } message - Error message describing the intent mismatch
269- * @param {string | IRequestTracer } id - Transaction ID or request tracer
269+ * @param {string | IRequestTracer | undefined } id - Transaction ID or request tracer
270270 * @param {TransactionParams[] } txParams - Transaction parameters that were analyzed
271- * @param {string } txHex - Raw transaction hex string
271+ * @param {string | undefined } txHex - Raw transaction hex string
272272 */
273- public constructor ( message : string , id : string | IRequestTracer , txParams : TransactionParams [ ] , txHex : string ) {
273+ public constructor (
274+ message : string ,
275+ id : string | IRequestTracer | undefined ,
276+ txParams : TransactionParams [ ] ,
277+ txHex : string | undefined
278+ ) {
274279 super ( message ) ;
275280 this . id = id ;
276281 this . txParams = txParams ;
@@ -295,16 +300,16 @@ export class TxIntentMismatchRecipientError extends TxIntentMismatchError {
295300 * Creates an instance of TxIntentMismatchRecipientError
296301 *
297302 * @param {string } message - Error message describing the recipient intent mismatch
298- * @param {string | IRequestTracer } id - Transaction ID or request tracer
303+ * @param {string | IRequestTracer | undefined } id - Transaction ID or request tracer
299304 * @param {TransactionParams[] } txParams - Transaction parameters that were analyzed
300- * @param {string } txHex - Raw transaction hex string
305+ * @param {string | undefined } txHex - Raw transaction hex string
301306 * @param {MismatchedRecipient[] } mismatchedRecipients - Array of recipients that don't match user intent
302307 */
303308 public constructor (
304309 message : string ,
305- id : string | IRequestTracer ,
310+ id : string | IRequestTracer | undefined ,
306311 txParams : TransactionParams [ ] ,
307- txHex : string ,
312+ txHex : string | undefined ,
308313 mismatchedRecipients : MismatchedRecipient [ ]
309314 ) {
310315 super ( message , id , txParams , txHex ) ;
@@ -329,16 +334,16 @@ export class TxIntentMismatchContractError extends TxIntentMismatchError {
329334 * Creates an instance of TxIntentMismatchContractError
330335 *
331336 * @param {string } message - Error message describing the contract intent mismatch
332- * @param {string | IRequestTracer } id - Transaction ID or request tracer
337+ * @param {string | IRequestTracer | undefined } id - Transaction ID or request tracer
333338 * @param {TransactionParams[] } txParams - Transaction parameters that were analyzed
334- * @param {string } txHex - Raw transaction hex string
339+ * @param {string | undefined } txHex - Raw transaction hex string
335340 * @param {ContractDataPayload } mismatchedDataPayload - The contract interaction data that doesn't match user intent
336341 */
337342 public constructor (
338343 message : string ,
339- id : string | IRequestTracer ,
344+ id : string | IRequestTracer | undefined ,
340345 txParams : TransactionParams [ ] ,
341- txHex : string ,
346+ txHex : string | undefined ,
342347 mismatchedDataPayload : ContractDataPayload
343348 ) {
344349 super ( message , id , txParams , txHex ) ;
@@ -363,16 +368,16 @@ export class TxIntentMismatchApprovalError extends TxIntentMismatchError {
363368 * Creates an instance of TxIntentMismatchApprovalError
364369 *
365370 * @param {string } message - Error message describing the approval intent mismatch
366- * @param {string | IRequestTracer } id - Transaction ID or request tracer
371+ * @param {string | IRequestTracer | undefined } id - Transaction ID or request tracer
367372 * @param {TransactionParams[] } txParams - Transaction parameters that were analyzed
368- * @param {string } txHex - Raw transaction hex string
373+ * @param {string | undefined } txHex - Raw transaction hex string
369374 * @param {TokenApproval } tokenApproval - Details of the token approval that doesn't match user intent
370375 */
371376 public constructor (
372377 message : string ,
373- id : string | IRequestTracer ,
378+ id : string | IRequestTracer | undefined ,
374379 txParams : TransactionParams [ ] ,
375- txHex : string ,
380+ txHex : string | undefined ,
376381 tokenApproval : TokenApproval
377382 ) {
378383 super ( message , id , txParams , txHex ) ;
0 commit comments