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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/solotto.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solotto",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Solana lottery client",
5
5
  "type": "module",
6
6
  "types": "./solotto.d.ts",
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
- ENTROPY: 2,
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.ENTROPY, 0);
628
+ buffer.writeUInt8(INSTRUCTIONS.DRAW_WINNER, 0);
629
629
  return buffer;
630
630
  }
631
631
  const lottery = new Lottery(this.connection, false, this.program);