@@ -32,7 +32,7 @@ describe('getNullDataScriptData tests', () => {
3232 const data = getNullDataScriptData ( script )
3333 expect ( data ) . toStrictEqual ( EMPTY_OP_RETURN )
3434 } )
35- it ( 'Empty if data explicitly empty and nonce too' , async ( ) => {
35+ it ( 'Empty if data explicitly empty and paymentId too' , async ( ) => {
3636 const script = '6a' + '04' + '50415900' + '00' + '00' + '00'
3737 const data = getNullDataScriptData ( script )
3838 expect ( data ) . toStrictEqual ( EMPTY_OP_RETURN )
@@ -102,23 +102,23 @@ describe('getNullDataScriptData tests', () => {
102102 data : '😂👍©ĸðМжЪы% ŋæPßđĸł„»“æ}¹↓£³→²'
103103 } )
104104 } )
105- it ( 'String data with nonce ' , async ( ) => {
105+ it ( 'String data with paymentId ' , async ( ) => {
106106 const script = '6a' + '04' + '50415900' + '00' + '08' + '5051525354555657' + '03' + '010203'
107107 const data = getNullDataScriptData ( script )
108108 expect ( data ) . toStrictEqual ( {
109109 paymentId : '010203' ,
110110 data : 'PQRSTUVW'
111111 } )
112112 } )
113- it ( 'String data with explicitly empty nonce ' , async ( ) => {
113+ it ( 'String data with explicitly empty paymentId ' , async ( ) => {
114114 const script = '6a' + '04' + '50415900' + '00' + '08' + '5051525354555657' + '00'
115115 const data = getNullDataScriptData ( script )
116116 expect ( data ) . toStrictEqual ( {
117117 paymentId : '' ,
118118 data : 'PQRSTUVW'
119119 } )
120120 } )
121- it ( 'Ignore incomplete nonce ' , async ( ) => {
121+ it ( 'Ignore incomplete paymentId ' , async ( ) => {
122122 const script = '6a' + '04' + '50415900' + '00' + '08' + '5051525354555657' + '03' + 'aabb'
123123 const data = getNullDataScriptData ( script )
124124 expect ( data ) . toStrictEqual ( {
0 commit comments