@@ -16,7 +16,7 @@ export function createInstruction(
1616 nameParentOwner ?: PublicKey ,
1717) : TransactionInstruction {
1818 const buffers = [
19- Buffer . from ( Int8Array . from ( [ 0 ] ) ) ,
19+ Buffer . from ( Uint8Array . from ( [ 0 ] ) ) ,
2020 new Numberu32 ( hashed_name . length ) . toBuffer ( ) ,
2121 hashed_name ,
2222 lamports . toBuffer ( ) ,
@@ -98,7 +98,7 @@ export function updateInstruction(
9898 parentNameKey : PublicKey | undefined ,
9999) : TransactionInstruction {
100100 const buffers = [
101- Buffer . from ( Int8Array . from ( [ 1 ] ) ) ,
101+ Buffer . from ( Uint8Array . from ( [ 1 ] ) ) ,
102102 offset . toBuffer ( ) ,
103103 new Numberu32 ( input_data . length ) . toBuffer ( ) ,
104104 input_data ,
@@ -141,7 +141,7 @@ export function transferInstruction(
141141 nameClassKey ?: PublicKey ,
142142 nameParent ?: PublicKey ,
143143) : TransactionInstruction {
144- const buffers = [ Buffer . from ( Int8Array . from ( [ 2 ] ) ) , newOwnerKey . toBuffer ( ) ] ;
144+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 2 ] ) ) , newOwnerKey . toBuffer ( ) ] ;
145145
146146 const data = Buffer . concat ( buffers ) ;
147147
@@ -187,7 +187,7 @@ export function deleteInstruction(
187187 refundTargetKey : PublicKey ,
188188 nameOwnerKey : PublicKey ,
189189) : TransactionInstruction {
190- const buffers = [ Buffer . from ( Int8Array . from ( [ 3 ] ) ) ] ;
190+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 3 ] ) ) ] ;
191191
192192 const data = Buffer . concat ( buffers ) ;
193193 const keys = [
@@ -223,7 +223,7 @@ export function reallocInstruction(
223223 nameOwnerKey : PublicKey ,
224224 space : Numberu32 ,
225225) : TransactionInstruction {
226- const buffers = [ Buffer . from ( Int8Array . from ( [ 4 ] ) ) , space . toBuffer ( ) ] ;
226+ const buffers = [ Buffer . from ( Uint8Array . from ( [ 4 ] ) ) , space . toBuffer ( ) ] ;
227227
228228 const data = Buffer . concat ( buffers ) ;
229229 const keys = [
0 commit comments