File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/sdk-coin-canton/src/lib/transaction Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export class Transaction extends BaseTransaction {
6969 }
7070
7171 toBroadcastFormat ( ) : string {
72- if ( ! this . _type ) {
72+ if ( this . _type === undefined ) {
7373 throw new InvalidTransactionError ( 'Transaction type is not set' ) ;
7474 }
7575 if ( this . _type === TransactionType . TransferAcknowledge ) {
@@ -89,7 +89,7 @@ export class Transaction extends BaseTransaction {
8989 const partySignatures : PartySignature [ ] = [ ] ;
9090 const data : TransactionBroadcastData = {
9191 prepareCommandResponse : this . _prepareCommand ,
92- txType : this . _type ? TransactionType [ this . _type ] : '' ,
92+ txType : this . _type !== undefined ? TransactionType [ this . _type ] : '' ,
9393 preparedTransaction : '' ,
9494 partySignatures : {
9595 signatures : partySignatures ,
You can’t perform that action at this time.
0 commit comments