diff --git a/test/components/ContractTab/function-interface-utils.test.js b/test/components/ContractTab/function-interface-utils.test.js index fe9b206d8..59e219bb4 100644 --- a/test/components/ContractTab/function-interface-utils.test.js +++ b/test/components/ContractTab/function-interface-utils.test.js @@ -20,7 +20,6 @@ import { parseAddressString, parseBooleanArrayString, parseBooleanString, - parseBytesArrayString, parseSignedIntArrayString, parseSignedIntString, parseStringArrayString, @@ -503,30 +502,6 @@ describe('function-interface-utils', () => { }); }); - describe('parseBytesArrayString', () => { - it('should correctly parse a string representation of bytes', () => { - const bytesOne = 'fa'; - const bytesTwo = 'B4'; - - // any length - valid - expect(parseBytesArrayString('[]')).toEqual([]); - expect(parseBytesArrayString(`[${bytesOne}]`)).toEqual([bytesOne]); - expect(parseBytesArrayString(`[${bytesOne}, ${bytesTwo}]`)).toEqual([bytesOne, bytesTwo]); - - // any length - invalid - expect(parseBytesArrayString('[1]')).toEqual(undefined); - - - // fixed length - valid - expect(parseBytesArrayString(`[${bytesOne}]`, 1)).toEqual([bytesOne]); - expect(parseBytesArrayString(`[${bytesOne}, ${bytesTwo}]`, 2)).toEqual([bytesOne, bytesTwo]); - - // fixed length - invalid - expect(parseBytesArrayString('[]', 2)).toEqual(undefined); - expect(parseBytesArrayString(`[${bytesOne}]`, 2)).toEqual(undefined); - }); - }); - describe('parseSignedIntArrayString', () => { it('should correctly parse a string representation of signed int array', () => { const intOne = 1;