diff --git a/packages/web3-eth/src/rpc_method_wrappers.ts b/packages/web3-eth/src/rpc_method_wrappers.ts index b2bcb972e98..aaf63400ffe 100644 --- a/packages/web3-eth/src/rpc_method_wrappers.ts +++ b/packages/web3-eth/src/rpc_method_wrappers.ts @@ -1229,5 +1229,14 @@ export async function supportedEntryPoints( returnFormat: ReturnFormat, ) { const response = await ethRpcMethods.supportedEntryPoints(web3Context.requestManager); - return format({ format: 'uint' }, response, returnFormat); + return format( + { + type: 'array', + items: { + format: 'string', + }, + }, + response, + returnFormat, + ); } diff --git a/packages/web3-eth/test/unit/rpc_method_wrappers/supported_entry_points.test.ts b/packages/web3-eth/test/unit/rpc_method_wrappers/supported_entry_points.test.ts index e10a26d9c16..6d09bca59e0 100644 --- a/packages/web3-eth/test/unit/rpc_method_wrappers/supported_entry_points.test.ts +++ b/packages/web3-eth/test/unit/rpc_method_wrappers/supported_entry_points.test.ts @@ -39,9 +39,14 @@ describe('supportedEntryPoints', () => { '0xcd01C8aa8995A59eB7B2627E69b40e0524B5ecf8', '0x7A0A0d159218E6a2f407B99173A2b12A6DDfC2a6', ]; - const expectedReturnFormat = { number: FMT_NUMBER.STR, bytes: FMT_BYTES.UINT8ARRAY }; + const expectedReturnFormat = { number: FMT_NUMBER.BIGINT, bytes: FMT_BYTES.HEX }; const expectedFormattedResult = format( - { format: 'uint' }, + { + type: 'array', + items: { + format: 'string', + }, + }, mockRpcResponse, expectedReturnFormat, );