@xandeum/web3.js 1.3.9 → 1.3.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/helpers.js CHANGED
@@ -108,7 +108,7 @@ function u64ToLeBytes(value) {
108
108
  * @returns A 33-byte Buffer containing the instruction data
109
109
  */
110
110
  function buildInstructionData(innerData) {
111
- var instructionData = Buffer.alloc(64, 0);
111
+ var instructionData = Buffer.alloc(65, 0);
112
112
  instructionData[0] = 0;
113
113
  innerData.copy(instructionData, 1);
114
114
  return instructionData;
package/dist/poke.js CHANGED
@@ -83,14 +83,14 @@ function poke(fsid, path, position, wallet, dataKey) {
83
83
  isWritable: true
84
84
  },
85
85
  {
86
- pubkey: dataKey,
86
+ pubkey: feeDistributorPda.pda,
87
87
  isSigner: false,
88
- isWritable: false
88
+ isWritable: true
89
89
  },
90
90
  {
91
- pubkey: feeDistributorPda.pda,
91
+ pubkey: dataKey,
92
92
  isSigner: false,
93
- isWritable: true
93
+ isWritable: false
94
94
  },
95
95
  {
96
96
  pubkey: payerAta.ata,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xandeum/web3.js",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "description": "Xandeum javascript api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/helpers.ts CHANGED
@@ -109,7 +109,7 @@ export function u64ToLeBytes(value: number): Buffer {
109
109
  * @returns A 33-byte Buffer containing the instruction data
110
110
  */
111
111
  export function buildInstructionData(innerData: Buffer): Buffer {
112
- const instructionData = Buffer.alloc(64, 0);
112
+ const instructionData = Buffer.alloc(65, 0);
113
113
  instructionData[0] = 0;
114
114
  innerData.copy(instructionData, 1);
115
115
  return instructionData;
package/src/poke.ts CHANGED
@@ -53,14 +53,14 @@ export async function poke (
53
53
  isWritable: true
54
54
  },
55
55
  {
56
- pubkey: dataKey,
56
+ pubkey: feeDistributorPda.pda,
57
57
  isSigner: false,
58
- isWritable: false
58
+ isWritable: true
59
59
  },
60
60
  {
61
- pubkey: feeDistributorPda.pda,
61
+ pubkey: dataKey,
62
62
  isSigner: false,
63
- isWritable: true
63
+ isWritable: false
64
64
  },
65
65
  {
66
66
  pubkey: payerAta.ata,