We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd4c17 commit fd6439fCopy full SHA for fd6439f
sdk/src/driftClient.ts
@@ -6579,7 +6579,10 @@ export class DriftClient {
6579
: 'SignedMsgOrderParamsMessage';
6580
return this.program.coder.types.decode(
6581
decodeStr,
6582
- Buffer.concat([encodedMessage.slice(8), Buffer.alloc(128)]) // assumes discriminator
+ 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
+ ])
6586
);
6587
}
6588
0 commit comments