From f26dd6bcad7c2c019cca105e0c9867f6d37f0f8e Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Sat, 2 Dec 2023 03:15:54 +0100 Subject: [PATCH] fix wrong value for meesage in hightlightfunc --- apps/vyper/src/app/components/CompilerButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/vyper/src/app/components/CompilerButton.tsx b/apps/vyper/src/app/components/CompilerButton.tsx index 838e04b6db..fe1aec546e 100644 --- a/apps/vyper/src/app/components/CompilerButton.tsx +++ b/apps/vyper/src/app/components/CompilerButton.tsx @@ -73,7 +73,7 @@ function CompilerButton({contract, setOutput, compilerUrl, resetCompilerState}: start: {line: line - 1, column: 10}, end: {line: line - 1, column: 10} } - remixClient.highlight(lineColumnPos as any, _contract.name, '#e0b4b4') + remixClient.highlight(lineColumnPos as any, _contract.name, output.message) } else { const regex = output?.message?.match(/line ((\d+):(\d+))+/g) const errors = output?.message?.split(/line ((\d+):(\d+))+/g) // extract error message