solotto 1.2.0 → 1.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/solotto.js +1 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solotto",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Solana lottery client",
5
5
  "type": "module",
6
6
  "types": "./solotto.d.ts",
package/solotto.js CHANGED
@@ -898,11 +898,10 @@ class LotteryManager {
898
898
  const [lotteryPDA] = await lottery.DeriveLotteryPDA(authority.publicKey, lotteryId);
899
899
  const [prizePoolPDA] = await lottery.DerivePrizePoolPDA(lotteryPDA);
900
900
  const keys = [
901
- { pubkey: authority.publicKey, isSigner: true, isWritable: false },
901
+ { pubkey: authority.publicKey, isSigner: true, isWritable: true },
902
902
  { pubkey: lotteryPDA, isSigner: false, isWritable: true },
903
903
  { pubkey: SYSVAR_SLOT_HASHES_PUBKEY, isSigner: false, isWritable: false },
904
904
  { pubkey: prizePoolPDA, isSigner: false, isWritable: true },
905
- { pubkey: SystemProgram.programId, isSigner: false, isWritable: false },
906
905
  ];
907
906
  const ix = new TransactionInstruction({programId: this.program, keys, data: await randomnessData()});
908
907
  const _tx_ = {};
@@ -1021,7 +1020,6 @@ class LotteryManager {
1021
1020
  { pubkey: authority.publicKey, isSigner: true, isWritable: true },
1022
1021
  { pubkey: lotteryPDA, isSigner: false, isWritable: true },
1023
1022
  { pubkey: new PublicKey(LOTTO.prizePoolAddress), isSigner: false, isWritable: true },
1024
- { pubkey: SystemProgram.programId, isSigner: false, isWritable: false },
1025
1023
  ];
1026
1024
  const ix = new TransactionInstruction({programId: this.program, keys, data: await expiredData()});
1027
1025
  const _tx_ = {};