fix wrong value for meesage in hightlightfunc

pull/4182/head
Joseph Izang 11 months ago
parent aed6ef1379
commit e371ad765e
  1. 2
      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

Loading…
Cancel
Save