solotto 1.0.2 → 1.0.3
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 +2 -2
package/package.json
CHANGED
package/solotto.js
CHANGED
|
@@ -10,7 +10,7 @@ import {EventEmitter} from 'events';
|
|
|
10
10
|
const INSTRUCTIONS = {
|
|
11
11
|
INITIALIZE_LOTTERY: 0,
|
|
12
12
|
BUY_TICKET: 1,
|
|
13
|
-
|
|
13
|
+
DRAW_WINNER: 2,
|
|
14
14
|
CLAIM_PRIZE: 3,
|
|
15
15
|
LOCK_LOTTERY: 4,
|
|
16
16
|
};
|
|
@@ -625,7 +625,7 @@ class LotteryManager {
|
|
|
625
625
|
try{
|
|
626
626
|
async function randomnessData() {
|
|
627
627
|
const buffer = Buffer.alloc(1);
|
|
628
|
-
buffer.writeUInt8(INSTRUCTIONS.
|
|
628
|
+
buffer.writeUInt8(INSTRUCTIONS.DRAW_WINNER, 0);
|
|
629
629
|
return buffer;
|
|
630
630
|
}
|
|
631
631
|
const lottery = new Lottery(this.connection, false, this.program);
|