@triadxyz/triad-protocol 2.4.6-beta → 2.4.7-beta
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/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -165,14 +165,14 @@ class TriadProtocolClient {
|
|
|
165
165
|
userTrade = (0, pda_1.getUserTradePDA)(this.program.programId, this.program.provider.publicKey);
|
|
166
166
|
}
|
|
167
167
|
catch (_a) { }
|
|
168
|
+
let poolPDA = null;
|
|
169
|
+
if (poolId) {
|
|
170
|
+
poolPDA = (0, pda_1.getPoolPDA)(this.program.programId, poolId);
|
|
171
|
+
}
|
|
168
172
|
for (const market of markets) {
|
|
169
173
|
if (market.question.length > 80) {
|
|
170
174
|
throw new Error('Question must be less than 80 characters');
|
|
171
175
|
}
|
|
172
|
-
let poolPDA = null;
|
|
173
|
-
if (poolId) {
|
|
174
|
-
poolPDA = (0, pda_1.getPoolPDA)(this.program.programId, poolId);
|
|
175
|
-
}
|
|
176
176
|
ixs.push(yield this.program.methods
|
|
177
177
|
.createMarket({
|
|
178
178
|
marketId: new bn_js_1.default(market.marketId),
|