From 7b72ac448333435ab78dc1160578fc35e0d1358e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Jakub=20Nani=C5=A1ta?= Date: Sun, 21 Jan 2024 10:10:22 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Fix=20error=20output=20when=20de?= =?UTF-8?q?ploying=20EndpointV2=20in=20tests=20(#225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts b/tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts index dc269c053..d173bbbaa 100644 --- a/tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts +++ b/tests/ua-devtools-evm-hardhat-test/test/__utils__/endpoint.ts @@ -534,9 +534,7 @@ export const setupDefaultEndpoint = async (): Promise => { if (errors.length === 0) return const errorParser = await createErrorParser() - const parsedErrors = await Promise.all( - errors.map(({ error, transaction: { point } }) => errorParser({ error, point })) - ) + const parsedErrors = await Promise.all(errors.map(({ error }) => errorParser(error))) throw new Error(`Endpoint deployment failed:\n\n${parsedErrors.join('\n')}`) }