File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ test('it creates a canonical metadata account with data larger than a transactio
6262 const [ program ] = await createDeployedProgram ( client , authority ) ;
6363
6464 // When we create a canonical metadata account for the program with a lot of data.
65- const largeData = getUtf8Encoder ( ) . encode (
66- // TODO: Temporary workaround to avoid sending the exact same data.
67- 'x' . repeat ( 1_000 ) + 'y' . repeat ( 1_000 ) + 'z' . repeat ( 1_000 )
68- ) ;
65+ const largeData = getUtf8Encoder ( ) . encode ( 'x' . repeat ( 3_000 ) ) ;
6966 const { metadata } = await createMetadata ( {
7067 ...client ,
7168 payer : authority ,
@@ -143,10 +140,7 @@ test('it creates a non-canonical metadata account with data larger than a transa
143140 const program = address ( 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA' ) ;
144141
145142 // When we create a non-canonical metadata account for the program with a lot of data.
146- const largeData = getUtf8Encoder ( ) . encode (
147- // TODO: Temporary workaround to avoid sending the exact same data.
148- 'x' . repeat ( 1_000 ) + 'y' . repeat ( 1_000 ) + 'z' . repeat ( 1_000 )
149- ) ;
143+ const largeData = getUtf8Encoder ( ) . encode ( 'x' . repeat ( 3_000 ) ) ;
150144 const { metadata } = await createMetadata ( {
151145 ...client ,
152146 payer : authority ,
Original file line number Diff line number Diff line change @@ -91,10 +91,7 @@ test('it updates a canonical metadata account with data larger than a transactio
9191 } ) ;
9292
9393 // When we update the metadata account with new data with a lot of data.
94- const newData = getUtf8Encoder ( ) . encode (
95- // TODO: Temporary workaround to avoid sending the exact same data.
96- 'x' . repeat ( 1_000 ) + 'y' . repeat ( 1_000 ) + 'z' . repeat ( 1_000 )
97- ) ;
94+ const newData = getUtf8Encoder ( ) . encode ( 'x' . repeat ( 3_000 ) ) ;
9895 const { metadata } = await updateMetadata ( {
9996 ...client ,
10097 payer : authority ,
@@ -200,10 +197,7 @@ test('it updates a non-canonical metadata account with data larger than a transa
200197 } ) ;
201198
202199 // When we update the metadata account with new data.
203- const newData = getUtf8Encoder ( ) . encode (
204- // TODO: Temporary workaround to avoid sending the exact same data.
205- 'x' . repeat ( 1_000 ) + 'y' . repeat ( 1_000 ) + 'z' . repeat ( 1_000 )
206- ) ;
200+ const newData = getUtf8Encoder ( ) . encode ( 'x' . repeat ( 3_000 ) ) ;
207201 const { metadata } = await updateMetadata ( {
208202 ...client ,
209203 payer : authority ,
You can’t perform that action at this time.
0 commit comments