diff --git a/clients/js/test/createMetadata.test.ts b/clients/js/test/createMetadata.test.ts index f26bdda..9273e5a 100644 --- a/clients/js/test/createMetadata.test.ts +++ b/clients/js/test/createMetadata.test.ts @@ -62,10 +62,7 @@ test('it creates a canonical metadata account with data larger than a transactio const [program] = await createDeployedProgram(client, authority); // When we create a canonical metadata account for the program with a lot of data. - const largeData = getUtf8Encoder().encode( - // TODO: Temporary workaround to avoid sending the exact same data. - 'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000) - ); + const largeData = getUtf8Encoder().encode('x'.repeat(3_000)); const { metadata } = await createMetadata({ ...client, payer: authority, @@ -143,10 +140,7 @@ test('it creates a non-canonical metadata account with data larger than a transa const program = address('TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA'); // When we create a non-canonical metadata account for the program with a lot of data. - const largeData = getUtf8Encoder().encode( - // TODO: Temporary workaround to avoid sending the exact same data. - 'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000) - ); + const largeData = getUtf8Encoder().encode('x'.repeat(3_000)); const { metadata } = await createMetadata({ ...client, payer: authority, diff --git a/clients/js/test/updateMetadata.test.ts b/clients/js/test/updateMetadata.test.ts index e8ecafa..cade7ab 100644 --- a/clients/js/test/updateMetadata.test.ts +++ b/clients/js/test/updateMetadata.test.ts @@ -91,10 +91,7 @@ test('it updates a canonical metadata account with data larger than a transactio }); // When we update the metadata account with new data with a lot of data. - const newData = getUtf8Encoder().encode( - // TODO: Temporary workaround to avoid sending the exact same data. - 'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000) - ); + const newData = getUtf8Encoder().encode('x'.repeat(3_000)); const { metadata } = await updateMetadata({ ...client, payer: authority, @@ -200,10 +197,7 @@ test('it updates a non-canonical metadata account with data larger than a transa }); // When we update the metadata account with new data. - const newData = getUtf8Encoder().encode( - // TODO: Temporary workaround to avoid sending the exact same data. - 'x'.repeat(1_000) + 'y'.repeat(1_000) + 'z'.repeat(1_000) - ); + const newData = getUtf8Encoder().encode('x'.repeat(3_000)); const { metadata } = await updateMetadata({ ...client, payer: authority,