solotto 1.2.0 → 1.2.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/package.json +1 -1
- package/solotto.js +1 -4
package/package.json
CHANGED
package/solotto.js
CHANGED
|
@@ -277,7 +277,6 @@ class Lottery extends EventEmitter {
|
|
|
277
277
|
{ pubkey: new PublicKey(LOTTO.ticket.ticketPda), isSigner: false, isWritable: false },
|
|
278
278
|
{ pubkey: new PublicKey(LOTTO.prizePoolAddress), isSigner: false, isWritable: true },
|
|
279
279
|
{ pubkey: new PublicKey(LOTTO.authority), isSigner: false, isWritable: true },
|
|
280
|
-
{ pubkey: SystemProgram.programId, isSigner: false, isWritable: false },
|
|
281
280
|
];
|
|
282
281
|
const ix = new TransactionInstruction({programId: this.program, keys, data: await claimData()});
|
|
283
282
|
const _tx_ = {};
|
|
@@ -898,11 +897,10 @@ class LotteryManager {
|
|
|
898
897
|
const [lotteryPDA] = await lottery.DeriveLotteryPDA(authority.publicKey, lotteryId);
|
|
899
898
|
const [prizePoolPDA] = await lottery.DerivePrizePoolPDA(lotteryPDA);
|
|
900
899
|
const keys = [
|
|
901
|
-
{ pubkey: authority.publicKey, isSigner: true, isWritable:
|
|
900
|
+
{ pubkey: authority.publicKey, isSigner: true, isWritable: true },
|
|
902
901
|
{ pubkey: lotteryPDA, isSigner: false, isWritable: true },
|
|
903
902
|
{ pubkey: SYSVAR_SLOT_HASHES_PUBKEY, isSigner: false, isWritable: false },
|
|
904
903
|
{ pubkey: prizePoolPDA, isSigner: false, isWritable: true },
|
|
905
|
-
{ pubkey: SystemProgram.programId, isSigner: false, isWritable: false },
|
|
906
904
|
];
|
|
907
905
|
const ix = new TransactionInstruction({programId: this.program, keys, data: await randomnessData()});
|
|
908
906
|
const _tx_ = {};
|
|
@@ -1021,7 +1019,6 @@ class LotteryManager {
|
|
|
1021
1019
|
{ pubkey: authority.publicKey, isSigner: true, isWritable: true },
|
|
1022
1020
|
{ pubkey: lotteryPDA, isSigner: false, isWritable: true },
|
|
1023
1021
|
{ pubkey: new PublicKey(LOTTO.prizePoolAddress), isSigner: false, isWritable: true },
|
|
1024
|
-
{ pubkey: SystemProgram.programId, isSigner: false, isWritable: false },
|
|
1025
1022
|
];
|
|
1026
1023
|
const ix = new TransactionInstruction({programId: this.program, keys, data: await expiredData()});
|
|
1027
1024
|
const _tx_ = {};
|