@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.
|
|
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.
|
|
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.
|
|
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
|
@@ -227,7 +227,7 @@ export class PollingDriftClientAccountSubscriber
|
|
|
227
227
|
|
|
228
228
|
const account = this.program.account[
|
|
229
229
|
accountToPoll.key
|
|
230
|
-
].coder.accounts.
|
|
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.
|
|
291
|
+
].coder.accounts.decodeUnchecked(capitalize(accountToPoll.key), buffer);
|
|
292
292
|
|
|
293
293
|
if (accountToPoll.mapKey != undefined) {
|
|
294
294
|
this[accountToPoll.key].set(accountToPoll.mapKey, {
|