@pooflabs/core 0.0.9 → 0.0.11

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 CHANGED
@@ -3002,7 +3002,8 @@ function loadKeypairFromEnv() {
3002
3002
  async function createSession() {
3003
3003
  const kp = loadKeypairFromEnv();
3004
3004
  const address = kp.publicKey.toBase58();
3005
- const message = await genSolanaMessage(address);
3005
+ const nonce = await genAuthNonce();
3006
+ const message = await genSolanaMessage(address, nonce);
3006
3007
  /* sign the message */
3007
3008
  const sigBytes = nacl.sign.detached(new TextEncoder().encode(message), kp.secretKey);
3008
3009
  const signature = bufferExports.Buffer.from(sigBytes).toString("base64");
@@ -3466,6 +3467,7 @@ async function setMany(many, options) {
3466
3467
  appId: config.appId,
3467
3468
  txArgs: [solTransactionData],
3468
3469
  lutKey: (_c = tx.lutAddress) !== null && _c !== void 0 ? _c : null,
3470
+ network: tx.network,
3469
3471
  preInstructions: (_e = (_d = tx.preInstructions) === null || _d === void 0 ? void 0 : _d.map((ix) => {
3470
3472
  var _a;
3471
3473
  const keys = (_a = ix.keys) === null || _a === void 0 ? void 0 : _a.map((k) => ({