File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
sdk-core/src/bitgo/baseCoin Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ export class Transaction extends BaseTransaction {
282282 }
283283
284284 explainTransferTransaction ( json : TxData , explanationResult : TransactionExplanation ) : TransactionExplanation {
285- explanationResult . displayOrder . push ( 'owner' , 'forceProxyType' ) ;
285+ explanationResult . displayOrder ? .push ( 'owner' , 'forceProxyType' ) ;
286286 return {
287287 ...explanationResult ,
288288 outputs : [
@@ -297,7 +297,7 @@ export class Transaction extends BaseTransaction {
297297 }
298298
299299 explainStakingActivateTransaction ( json : TxData , explanationResult : TransactionExplanation ) : TransactionExplanation {
300- explanationResult . displayOrder . push ( 'payee' , 'forceProxyType' ) ;
300+ explanationResult . displayOrder ? .push ( 'payee' , 'forceProxyType' ) ;
301301 return {
302302 ...explanationResult ,
303303 outputs : [
@@ -315,7 +315,7 @@ export class Transaction extends BaseTransaction {
315315 json : TxData ,
316316 explanationResult : TransactionExplanation
317317 ) : TransactionExplanation {
318- explanationResult . displayOrder . push ( 'owner' , 'proxyType' , 'delay' ) ;
318+ explanationResult . displayOrder ? .push ( 'owner' , 'proxyType' , 'delay' ) ;
319319 return {
320320 ...explanationResult ,
321321 owner : json . owner ,
Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ export interface ITransactionFee<TAmount = string> {
8282}
8383
8484export interface ITransactionExplanation < TFee = any , TAmount = any > {
85- displayOrder : string [ ] ;
85+ /** @deprecated */
86+ displayOrder ?: string [ ] ;
8687 id : string ;
8788 outputs : ITransactionRecipient [ ] ;
8889 outputAmount : TAmount ;
You can’t perform that action at this time.
0 commit comments