@xandeum/web3.js 1.3.9 → 1.3.10
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 +1 -1
- package/package.json +1 -1
- package/src/helpers.ts +1 -1
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(
|
|
111
|
+
var instructionData = Buffer.alloc(65, 0);
|
|
112
112
|
instructionData[0] = 0;
|
|
113
113
|
innerData.copy(instructionData, 1);
|
|
114
114
|
return instructionData;
|
package/package.json
CHANGED
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(
|
|
112
|
+
const instructionData = Buffer.alloc(65, 0);
|
|
113
113
|
instructionData[0] = 0;
|
|
114
114
|
innerData.copy(instructionData, 1);
|
|
115
115
|
return instructionData;
|