@drift-labs/sdk 0.1.23-master.3 → 0.1.23-master.4
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.
|
@@ -108,17 +108,8 @@ class BulkAccountLoader {
|
|
|
108
108
|
}),
|
|
109
109
|
{ commitment: this.commitment },
|
|
110
110
|
];
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
// @ts-ignore
|
|
114
|
-
rpcResponse = yield this.connection._rpcRequest('getMultipleAccounts', args);
|
|
115
|
-
}
|
|
116
|
-
catch (e) {
|
|
117
|
-
for (const [_, callback] of this.errorCallbacks) {
|
|
118
|
-
callback(e);
|
|
119
|
-
}
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
const rpcResponse = yield this.connection._rpcRequest('getMultipleAccounts', args);
|
|
122
113
|
const newSlot = rpcResponse.result.context.slot;
|
|
123
114
|
for (const i in accountsToLoad) {
|
|
124
115
|
const accountToLoad = accountsToLoad[i];
|
package/package.json
CHANGED
|
@@ -135,19 +135,11 @@ export class BulkAccountLoader {
|
|
|
135
135
|
{ commitment: this.commitment },
|
|
136
136
|
];
|
|
137
137
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
args
|
|
144
|
-
);
|
|
145
|
-
} catch (e) {
|
|
146
|
-
for (const [_, callback] of this.errorCallbacks) {
|
|
147
|
-
callback(e);
|
|
148
|
-
}
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
138
|
+
// @ts-ignore
|
|
139
|
+
const rpcResponse = await this.connection._rpcRequest(
|
|
140
|
+
'getMultipleAccounts',
|
|
141
|
+
args
|
|
142
|
+
);
|
|
151
143
|
|
|
152
144
|
const newSlot = rpcResponse.result.context.slot;
|
|
153
145
|
|