@drift-labs/sdk 2.38.1-beta.0 → 2.38.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.38.1-beta.0
1
+ 2.38.1-beta.2
@@ -137,7 +137,7 @@ class PollingDriftClientAccountSubscriber {
137
137
  accountToPoll.callbackId = await this.accountLoader.addAccount(accountToPoll.publicKey, (buffer, slot) => {
138
138
  if (!buffer)
139
139
  return;
140
- const account = this.program.account[accountToPoll.key].coder.accounts.decode((0, utils_1.capitalize)(accountToPoll.key), buffer);
140
+ const account = this.program.account[accountToPoll.key].coder.accounts.decodeUnchecked((0, utils_1.capitalize)(accountToPoll.key), buffer);
141
141
  const dataAndSlot = {
142
142
  data: account,
143
143
  slot,
@@ -176,7 +176,7 @@ class PollingDriftClientAccountSubscriber {
176
176
  for (const [_, accountToPoll] of this.accountsToPoll) {
177
177
  const { buffer, slot } = this.accountLoader.getBufferAndSlot(accountToPoll.publicKey);
178
178
  if (buffer) {
179
- const account = this.program.account[accountToPoll.key].coder.accounts.decode((0, utils_1.capitalize)(accountToPoll.key), buffer);
179
+ const account = this.program.account[accountToPoll.key].coder.accounts.decodeUnchecked((0, utils_1.capitalize)(accountToPoll.key), buffer);
180
180
  if (accountToPoll.mapKey != undefined) {
181
181
  this[accountToPoll.key].set(accountToPoll.mapKey, {
182
182
  data: account,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.38.1-beta.0",
3
+ "version": "2.38.1-beta.2",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -227,7 +227,7 @@ export class PollingDriftClientAccountSubscriber
227
227
 
228
228
  const account = this.program.account[
229
229
  accountToPoll.key
230
- ].coder.accounts.decode(capitalize(accountToPoll.key), buffer);
230
+ ].coder.accounts.decodeUnchecked(capitalize(accountToPoll.key), buffer);
231
231
  const dataAndSlot = {
232
232
  data: account,
233
233
  slot,
@@ -288,7 +288,7 @@ export class PollingDriftClientAccountSubscriber
288
288
  if (buffer) {
289
289
  const account = this.program.account[
290
290
  accountToPoll.key
291
- ].coder.accounts.decode(capitalize(accountToPoll.key), buffer);
291
+ ].coder.accounts.decodeUnchecked(capitalize(accountToPoll.key), buffer);
292
292
 
293
293
  if (accountToPoll.mapKey != undefined) {
294
294
  this[accountToPoll.key].set(accountToPoll.mapKey, {