Skip to content

Commit fd6439f

Browse files
committed
fix comments
1 parent 9fd4c17 commit fd6439f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/src/driftClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6579,7 +6579,10 @@ export class DriftClient {
65796579
: 'SignedMsgOrderParamsMessage';
65806580
return this.program.coder.types.decode(
65816581
decodeStr,
6582-
Buffer.concat([encodedMessage.slice(8), Buffer.alloc(128)]) // assumes discriminator
6582+
Buffer.concat([
6583+
encodedMessage.slice(8), // strip out discriminator
6584+
Buffer.alloc(128), // pad on 128 bytes, this is most efficient way to messages that are too small
6585+
])
65836586
);
65846587
}
65856588

0 commit comments

Comments
 (0)