Skip to content

Commit 72c6673

Browse files
Merge pull request #8381 from BitGo/CECHO-606
fix(sdk-coin-sol): fix decimalPlaces falsy check in solInstructionsFactory
2 parents 93a0a62 + d638c12 commit 72c6673

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/sdk-coin-sol/src/lib/solInstructionFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function tokenTransferInstruction(data: TokenTransfer): TransactionInstruction[]
196196
let tokenAddress: string;
197197
let programId: string | undefined;
198198
let decimalPlaces: number;
199-
if (data.params.tokenAddress && data.params.decimalPlaces) {
199+
if (data.params.tokenAddress && data.params.decimalPlaces != null) {
200200
tokenAddress = data.params.tokenAddress;
201201
decimalPlaces = data.params.decimalPlaces;
202202
programId = data.params.programId;

0 commit comments

Comments
 (0)