File tree Expand file tree Collapse file tree
modules/sdk-coin-sol/src/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ export class TokenTransferBuilder extends TransactionBuilder {
124124 let tokenName : string ;
125125 let programId : string | undefined ;
126126 let decimals : number | undefined ;
127- if ( sendParams . tokenAddress && sendParams . programId && sendParams . decimalPlaces ) {
127+ if ( sendParams . tokenAddress && sendParams . programId && sendParams . decimalPlaces != null ) {
128128 tokenAddress = sendParams . tokenAddress ;
129129 tokenName = sendParams . tokenName ;
130130 programId = sendParams . programId ;
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export class TransferBuilderV2 extends TransactionBuilder {
138138 let tokenName : string ;
139139 let programId : string | undefined ;
140140 let decimals : number | undefined ;
141- if ( sendParams . tokenAddress && sendParams . programId && sendParams . decimalPlaces ) {
141+ if ( sendParams . tokenAddress && sendParams . programId && sendParams . decimalPlaces != null ) {
142142 tokenName = sendParams . tokenName ;
143143 tokenAddress = sendParams . tokenAddress ;
144144 decimals = sendParams . decimalPlaces ;
You can’t perform that action at this time.
0 commit comments