@@ -16,7 +16,7 @@ export function createInstruction(
16
16
nameParentOwner ?: PublicKey ,
17
17
) : TransactionInstruction {
18
18
const buffers = [
19
- Buffer . from ( Int8Array . from ( [ 0 ] ) ) ,
19
+ Buffer . from ( Uint8Array . from ( [ 0 ] ) ) ,
20
20
new Numberu32 ( hashed_name . length ) . toBuffer ( ) ,
21
21
hashed_name ,
22
22
lamports . toBuffer ( ) ,
@@ -98,7 +98,7 @@ export function updateInstruction(
98
98
parentNameKey : PublicKey | undefined ,
99
99
) : TransactionInstruction {
100
100
const buffers = [
101
- Buffer . from ( Int8Array . from ( [ 1 ] ) ) ,
101
+ Buffer . from ( Uint8Array . from ( [ 1 ] ) ) ,
102
102
offset . toBuffer ( ) ,
103
103
new Numberu32 ( input_data . length ) . toBuffer ( ) ,
104
104
input_data ,
@@ -141,7 +141,7 @@ export function transferInstruction(
141
141
nameClassKey ?: PublicKey ,
142
142
nameParent ?: PublicKey ,
143
143
) : TransactionInstruction {
144
- const buffers = [ Buffer . from ( Int8Array . from ( [ 2 ] ) ) , newOwnerKey . toBuffer ( ) ] ;
144
+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 2 ] ) ) , newOwnerKey . toBuffer ( ) ] ;
145
145
146
146
const data = Buffer . concat ( buffers ) ;
147
147
@@ -187,7 +187,7 @@ export function deleteInstruction(
187
187
refundTargetKey : PublicKey ,
188
188
nameOwnerKey : PublicKey ,
189
189
) : TransactionInstruction {
190
- const buffers = [ Buffer . from ( Int8Array . from ( [ 3 ] ) ) ] ;
190
+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 3 ] ) ) ] ;
191
191
192
192
const data = Buffer . concat ( buffers ) ;
193
193
const keys = [
@@ -223,7 +223,7 @@ export function reallocInstruction(
223
223
nameOwnerKey : PublicKey ,
224
224
space : Numberu32 ,
225
225
) : TransactionInstruction {
226
- const buffers = [ Buffer . from ( Int8Array . from ( [ 4 ] ) ) , space . toBuffer ( ) ] ;
226
+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 4 ] ) ) , space . toBuffer ( ) ] ;
227
227
228
228
const data = Buffer . concat ( buffers ) ;
229
229
const keys = [
0 commit comments